Linux 2.3.0
[davej-history.git] / fs / filesystems.c
blob4e6343a827a614499b156e2348008d61b5ed038f
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/minix_fs.h>
13 #include <linux/ext2_fs.h>
14 #include <linux/msdos_fs.h>
15 #include <linux/umsdos_fs.h>
16 #include <linux/proc_fs.h>
17 #include <linux/nfs_fs.h>
18 #include <linux/iso_fs.h>
19 #include <linux/sysv_fs.h>
20 #include <linux/hpfs_fs.h>
21 #include <linux/smb_fs.h>
22 #include <linux/ncp_fs.h>
23 #include <linux/affs_fs.h>
24 #include <linux/ufs_fs.h>
25 #include <linux/romfs_fs.h>
26 #include <linux/auto_fs.h>
27 #include <linux/qnx4_fs.h>
28 #include <linux/ntfs_fs.h>
29 #include <linux/hfs_fs.h>
30 #include <linux/devpts_fs.h>
31 #include <linux/major.h>
32 #include <linux/smp.h>
33 #include <linux/smp_lock.h>
34 #ifdef CONFIG_KMOD
35 #include <linux/kmod.h>
36 #endif
37 #include <linux/lockd/bind.h>
38 #include <linux/lockd/xdr.h>
39 #include <linux/init.h>
40 #include <linux/nls.h>
42 #ifdef CONFIG_CODA_FS
43 extern int init_coda(void);
44 #endif
46 #ifdef CONFIG_DEVPTS_FS
47 extern int init_devpts_fs(void);
48 #endif
50 void __init filesystem_setup(void)
52 #ifdef CONFIG_EXT2_FS
53 init_ext2_fs();
54 #endif
56 #ifdef CONFIG_MINIX_FS
57 init_minix_fs();
58 #endif
60 #ifdef CONFIG_ROMFS_FS
61 init_romfs_fs();
62 #endif
64 #ifdef CONFIG_UMSDOS_FS
65 init_umsdos_fs();
66 #endif
68 #ifdef CONFIG_FAT_FS
69 init_fat_fs();
70 #endif
72 #ifdef CONFIG_MSDOS_FS
73 init_msdos_fs();
74 #endif
76 #ifdef CONFIG_VFAT_FS
77 init_vfat_fs();
78 #endif
80 #ifdef CONFIG_PROC_FS
81 init_proc_fs();
82 #endif
84 #ifdef CONFIG_LOCKD
85 nlmxdr_init();
86 #endif
88 #ifdef CONFIG_NFS_FS
89 init_nfs_fs();
90 #endif
92 #ifdef CONFIG_CODA_FS
93 init_coda();
94 #endif
96 #ifdef CONFIG_SMB_FS
97 init_smb_fs();
98 #endif
100 #ifdef CONFIG_NCP_FS
101 init_ncp_fs();
102 #endif
104 #ifdef CONFIG_ISO9660_FS
105 init_iso9660_fs();
106 #endif
108 #ifdef CONFIG_SYSV_FS
109 init_sysv_fs();
110 #endif
112 #ifdef CONFIG_HPFS_FS
113 init_hpfs_fs();
114 #endif
116 #ifdef CONFIG_NTFS_FS
117 init_ntfs_fs();
118 #endif
120 #ifdef CONFIG_HFS_FS
121 init_hfs_fs();
122 #endif
124 #ifdef CONFIG_AFFS_FS
125 init_affs_fs();
126 #endif
128 #ifdef CONFIG_UFS_FS
129 init_ufs_fs();
130 #endif
132 #ifdef CONFIG_AUTOFS_FS
133 init_autofs_fs();
134 #endif
136 #ifdef CONFIG_ADFS_FS
137 init_adfs_fs();
138 #endif
140 #ifdef CONFIG_DEVPTS_FS
141 init_devpts_fs();
142 #endif
144 #ifdef CONFIG_QNX4FS_FS
145 init_qnx4_fs();
146 #endif
148 #ifdef CONFIG_NLS
149 init_nls();
150 #endif
153 #ifndef CONFIG_NFSD
154 #ifdef CONFIG_NFSD_MODULE
155 int (*do_nfsservctl)(int, void *, void *) = NULL;
156 #endif
158 asmlinkage sys_nfsservctl(int cmd, void *argp, void *resp)
160 #ifndef CONFIG_NFSD_MODULE
161 return -ENOSYS;
162 #else
163 int ret = -ENOSYS;
165 lock_kernel();
166 if (do_nfsservctl) {
167 ret = do_nfsservctl(cmd, argp, resp);
168 goto out;
170 #ifdef CONFIG_KMOD
171 if (request_module ("nfsd") == 0) {
172 if (do_nfsservctl)
173 ret = do_nfsservctl(cmd, argp, resp);
175 #endif /* CONFIG_KMOD */
176 out:
177 unlock_kernel();
178 return ret;
179 #endif /* CONFIG_NFSD_MODULE */
181 #endif /* CONFIG_NFSD */