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/ncp_fs.h>
25 #include <linux/major.h>
26
27 extern void device_setup(void);
28
29 #ifdef CONFIG_ROOT_NFS
30 extern int nfs_root_init(char *nfsname, char *nfsaddrs);
31 extern char nfs_root_name [];
32 extern char nfs_root_addrs [];
33 #endif
34
35
36 asmlinkage int sys_setup(void)
37 {
38 static int callable = 1;
39
40 if (!callable)
41 return -1;
42 callable = 0;
43
44 device_setup();
45
46 #ifdef CONFIG_EXT_FS
47 register_filesystem(&(struct file_system_type)
48 {ext_read_super, "ext", 1, NULL});
49 #endif
50
51 #ifdef CONFIG_EXT2_FS
52 register_filesystem(&(struct file_system_type)
53 {ext2_read_super, "ext2", 1, NULL});
54 #endif
55
56 #ifdef CONFIG_XIA_FS
57 register_filesystem(&(struct file_system_type)
58 {xiafs_read_super, "xiafs", 1, NULL});
59 #endif
60
61 #ifdef CONFIG_MINIX_FS
62 register_filesystem(&(struct file_system_type)
63 {minix_read_super, "minix", 1, NULL});
64 #endif
65
66 #ifdef CONFIG_UMSDOS_FS
67 register_filesystem(&(struct file_system_type)
68 {UMSDOS_read_super, "umsdos", 1, NULL});
69 #endif
70
71 #ifdef CONFIG_MSDOS_FS
72 register_filesystem(&(struct file_system_type)
73 {msdos_read_super, "msdos", 1, NULL});
74 #endif
75
76 #ifdef CONFIG_PROC_FS
77 register_filesystem(&(struct file_system_type)
78 {proc_read_super, "proc", 0, NULL});
79 #endif
80
81 #ifdef CONFIG_NFS_FS
82 register_filesystem(&(struct file_system_type)
83 {nfs_read_super, "nfs", 0, NULL});
84 #endif
85
86 #ifdef CONFIG_SMB_FS
87 register_filesystem(&(struct file_system_type)
88 {smb_read_super, "smbfs", 0, NULL});
89 #endif
90
91 #ifdef CONFIG_NCP_FS
92 register_filesystem(&(struct file_system_type)
93 {ncp_read_super, "ncpfs", 0, NULL});
94 #endif
95
96 #ifdef CONFIG_ISO9660_FS
97 register_filesystem(&(struct file_system_type)
98 {isofs_read_super, "iso9660", 1, NULL});
99 #endif
100
101 #ifdef CONFIG_SYSV_FS
102 register_filesystem(&(struct file_system_type)
103 {sysv_read_super, "xenix", 1, NULL});
104
105 register_filesystem(&(struct file_system_type)
106 {sysv_read_super, "sysv", 1, NULL});
107
108 register_filesystem(&(struct file_system_type)
109 {sysv_read_super, "coherent", 1, NULL});
110 #endif
111
112 #ifdef CONFIG_HPFS_FS
113 register_filesystem(&(struct file_system_type)
114 {hpfs_read_super, "hpfs", 1, NULL});
115 #endif
116
117 #ifdef CONFIG_ROOT_NFS
118 if (ROOT_DEV == MKDEV(UNNAMED_MAJOR, 255)) {
119 if (nfs_root_init(nfs_root_name, nfs_root_addrs) < 0) {
120 printk(KERN_ERR "Root-NFS: Unable to contact NFS server for root fs, using /dev/fd0 instead\n");
121 ROOT_DEV = MKDEV(FLOPPY_MAJOR, 0);
122 }
123 }
124 #endif
125
126 mount_root();
127 return 0;
128 }