Import 2.3.6
[davej-history.git] / fs / filesystems.c
blobee3f32c672a8e8f495519991241957f564a4d64a
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/efs_fs.h>
26 #include <linux/romfs_fs.h>
27 #include <linux/auto_fs.h>
28 #include <linux/qnx4_fs.h>
29 #include <linux/ntfs_fs.h>
30 #include <linux/hfs_fs.h>
31 #include <linux/devpts_fs.h>
32 #include <linux/major.h>
33 #include <linux/smp.h>
34 #include <linux/smp_lock.h>
35 #ifdef CONFIG_KMOD
36 #include <linux/kmod.h>
37 #endif
38 #include <linux/lockd/bind.h>
39 #include <linux/lockd/xdr.h>
40 #include <linux/init.h>
41 #include <linux/nls.h>
43 #ifdef CONFIG_CODA_FS
44 extern int init_coda(void);
45 #endif
47 #ifdef CONFIG_DEVPTS_FS
48 extern int init_devpts_fs(void);
49 #endif
51 void __init filesystem_setup(void)
53 #ifdef CONFIG_EXT2_FS
54 init_ext2_fs();
55 #endif
57 #ifdef CONFIG_MINIX_FS
58 init_minix_fs();
59 #endif
61 #ifdef CONFIG_ROMFS_FS
62 init_romfs_fs();
63 #endif
65 #ifdef CONFIG_UMSDOS_FS
66 init_umsdos_fs();
67 #endif
69 #ifdef CONFIG_FAT_FS
70 init_fat_fs();
71 #endif
73 #ifdef CONFIG_MSDOS_FS
74 init_msdos_fs();
75 #endif
77 #ifdef CONFIG_VFAT_FS
78 init_vfat_fs();
79 #endif
81 #ifdef CONFIG_PROC_FS
82 init_proc_fs();
83 #endif
85 #ifdef CONFIG_LOCKD
86 nlmxdr_init();
87 #endif
89 #ifdef CONFIG_NFS_FS
90 init_nfs_fs();
91 #endif
93 #ifdef CONFIG_CODA_FS
94 init_coda();
95 #endif
97 #ifdef CONFIG_SMB_FS
98 init_smb_fs();
99 #endif
101 #ifdef CONFIG_NCP_FS
102 init_ncp_fs();
103 #endif
105 #ifdef CONFIG_ISO9660_FS
106 init_iso9660_fs();
107 #endif
109 #ifdef CONFIG_SYSV_FS
110 init_sysv_fs();
111 #endif
113 #ifdef CONFIG_HPFS_FS
114 init_hpfs_fs();
115 #endif
117 #ifdef CONFIG_NTFS_FS
118 init_ntfs_fs();
119 #endif
121 #ifdef CONFIG_HFS_FS
122 init_hfs_fs();
123 #endif
125 #ifdef CONFIG_AFFS_FS
126 init_affs_fs();
127 #endif
129 #ifdef CONFIG_UFS_FS
130 init_ufs_fs();
131 #endif
133 #ifdef CONFIG_EFS_FS
134 init_efs_fs();
135 #endif
137 #ifdef CONFIG_AUTOFS_FS
138 init_autofs_fs();
139 #endif
141 #ifdef CONFIG_ADFS_FS
142 init_adfs_fs();
143 #endif
145 #ifdef CONFIG_DEVPTS_FS
146 init_devpts_fs();
147 #endif
149 #ifdef CONFIG_QNX4FS_FS
150 init_qnx4_fs();
151 #endif
153 #ifdef CONFIG_NLS
154 init_nls();
155 #endif
158 #ifndef CONFIG_NFSD
159 #ifdef CONFIG_NFSD_MODULE
160 int (*do_nfsservctl)(int, void *, void *) = NULL;
161 #endif
163 asmlinkage sys_nfsservctl(int cmd, void *argp, void *resp)
165 #ifndef CONFIG_NFSD_MODULE
166 return -ENOSYS;
167 #else
168 int ret = -ENOSYS;
170 lock_kernel();
171 if (do_nfsservctl) {
172 ret = do_nfsservctl(cmd, argp, resp);
173 goto out;
175 #ifdef CONFIG_KMOD
176 if (request_module ("nfsd") == 0) {
177 if (do_nfsservctl)
178 ret = do_nfsservctl(cmd, argp, resp);
180 #endif /* CONFIG_KMOD */
181 out:
182 unlock_kernel();
183 return ret;
184 #endif /* CONFIG_NFSD_MODULE */
186 #endif /* CONFIG_NFSD */