This source file includes following definitions.
- sys_setup
1
2
3
4
5
6
7
8
9 #include <linux/config.h>
10 #include <linux/fs.h>
11
12 #include <linux/minix_fs.h>
13 #include <linux/ext_fs.h>
14 #include <linux/ext2_fs.h>
15 #include <linux/xia_fs.h>
16 #include <linux/msdos_fs.h>
17 #include <linux/umsdos_fs.h>
18 #include <linux/proc_fs.h>
19 #include <linux/nfs_fs.h>
20 #include <linux/iso_fs.h>
21 #include <linux/sysv_fs.h>
22 #include <linux/hpfs_fs.h>
23 #include <linux/smb_fs.h>
24 #include <linux/major.h>
25
26 extern void device_setup(void);
27
28 #ifdef CONFIG_ROOT_NFS
29 extern int nfs_root_init(char *nfsname);
30 extern char nfs_root_name [];
31 #endif
32
33
34 asmlinkage int sys_setup(void)
35 {
36 static int callable = 1;
37
38 if (!callable)
39 return -1;
40 callable = 0;
41
42 device_setup();
43
44 #ifdef CONFIG_EXT_FS
45 register_filesystem(&(struct file_system_type)
46 {ext_read_super, "ext", 1, NULL});
47 #endif
48
49 #ifdef CONFIG_EXT2_FS
50 register_filesystem(&(struct file_system_type)
51 {ext2_read_super, "ext2", 1, NULL});
52 #endif
53
54 #ifdef CONFIG_XIA_FS
55 register_filesystem(&(struct file_system_type)
56 {xiafs_read_super, "xiafs", 1, NULL});
57 #endif
58
59 #ifdef CONFIG_MINIX_FS
60 register_filesystem(&(struct file_system_type)
61 {minix_read_super, "minix", 1, NULL});
62 #endif
63
64 #ifdef CONFIG_UMSDOS_FS
65 register_filesystem(&(struct file_system_type)
66 {UMSDOS_read_super, "umsdos", 1, NULL});
67 #endif
68
69 #ifdef CONFIG_MSDOS_FS
70 register_filesystem(&(struct file_system_type)
71 {msdos_read_super, "msdos", 1, NULL});
72 #endif
73
74 #ifdef CONFIG_PROC_FS
75 register_filesystem(&(struct file_system_type)
76 {proc_read_super, "proc", 0, NULL});
77 #endif
78
79 #ifdef CONFIG_NFS_FS
80 register_filesystem(&(struct file_system_type)
81 {nfs_read_super, "nfs", 0, NULL});
82 #endif
83
84 #ifdef CONFIG_SMB_FS
85 register_filesystem(&(struct file_system_type)
86 {smb_read_super, "smbfs", 0, NULL});
87 #endif
88
89 #ifdef CONFIG_ISO9660_FS
90 register_filesystem(&(struct file_system_type)
91 {isofs_read_super, "iso9660", 1, NULL});
92 #endif
93
94 #ifdef CONFIG_SYSV_FS
95 register_filesystem(&(struct file_system_type)
96 {sysv_read_super, "xenix", 1, NULL});
97
98 register_filesystem(&(struct file_system_type)
99 {sysv_read_super, "sysv", 1, NULL});
100
101 register_filesystem(&(struct file_system_type)
102 {sysv_read_super, "coherent", 1, NULL});
103 #endif
104
105 #ifdef CONFIG_HPFS_FS
106 register_filesystem(&(struct file_system_type)
107 {hpfs_read_super, "hpfs", 1, NULL});
108 #endif
109
110 #ifdef CONFIG_ROOT_NFS
111 if (nfs_root_name [0]){
112 if (nfs_root_init(nfs_root_name) < 0) {
113 printk(KERN_ERR "Root-NFS: Unable to mount NFS filesystem as /, using /dev/fd0 instead\n");
114 ROOT_DEV = MKDEV(FLOPPY_MAJOR, 0);
115 }
116 }
117 #endif
118 mount_root();
119 return 0;
120 }