- pre2
[davej-history.git] / fs / filesystems.c
blob30c18c2514c1715a7278905a631ea35cdfa25a1a
1 /*
2 * linux/fs/filesystems.c
4 * Copyright (C) 1991, 1992 Linus Torvalds
6 * table of configured filesystems
7 */
9 #include <linux/config.h>
10 #include <linux/fs.h>
12 #include <linux/devfs_fs_kernel.h>
13 #include <linux/nfs_fs.h>
14 #include <linux/auto_fs.h>
15 #include <linux/devpts_fs.h>
16 #include <linux/major.h>
17 #include <linux/smp.h>
18 #include <linux/smp_lock.h>
19 #include <linux/kmod.h>
20 #include <linux/init.h>
21 #include <linux/module.h>
22 #include <linux/nfsd/interface.h>
24 #ifdef CONFIG_CODA_FS
25 extern int init_coda(void);
26 #endif
28 #ifdef CONFIG_DEVPTS_FS
29 extern int init_devpts_fs(void);
30 #endif
32 void __init filesystem_setup(void)
34 init_devfs_fs(); /* Header file may make this empty */
36 #ifdef CONFIG_NFS_FS
37 init_nfs_fs();
38 #endif
40 #ifdef CONFIG_CODA_FS
41 init_coda();
42 #endif
44 #ifdef CONFIG_DEVPTS_FS
45 init_devpts_fs();
46 #endif
49 #if defined(CONFIG_NFSD_MODULE)
50 struct nfsd_linkage *nfsd_linkage = NULL;
52 long
53 asmlinkage sys_nfsservctl(int cmd, void *argp, void *resp)
55 int ret = -ENOSYS;
57 lock_kernel();
59 if (nfsd_linkage ||
60 (request_module ("nfsd") == 0 && nfsd_linkage))
61 ret = nfsd_linkage->do_nfsservctl(cmd, argp, resp);
63 unlock_kernel();
64 return ret;
66 EXPORT_SYMBOL(nfsd_linkage);
68 #elif ! defined (CONFIG_NFSD)
69 asmlinkage int sys_nfsservctl(int cmd, void *argp, void *resp)
71 return -ENOSYS;
73 #endif /* CONFIG_NFSD */