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 init_ext_fs();
48 #endif
49
50 #ifdef CONFIG_EXT2_FS
51 init_ext2_fs();
52 #endif
53
54 #ifdef CONFIG_XIA_FS
55 init_xiafs_fs();
56 #endif
57
58 #ifdef CONFIG_MINIX_FS
59 init_minix_fs();
60 #endif
61
62 #ifdef CONFIG_FAT_FS
63 init_fat_fs();
64 #endif
65
66 #ifdef CONFIG_MSDOS_FS
67 init_msdos_fs();
68 #endif
69
70 #ifdef CONFIG_VFAT_FS
71 init_vfat_fs();
72 #endif
73
74 #ifdef CONFIG_UMSDOS_FS
75 init_umsdos_fs();
76 #endif
77
78 #ifdef CONFIG_PROC_FS
79 init_proc_fs();
80 #endif
81
82 #ifdef CONFIG_NFS_FS
83 init_nfs_fs();
84 #endif
85
86 #ifdef CONFIG_SMB_FS
87 init_smb_fs();
88 #endif
89
90 #ifdef CONFIG_NCP_FS
91 init_ncp_fs();
92 #endif
93
94 #ifdef CONFIG_ISO9660_FS
95 init_iso9660_fs();
96 #endif
97
98 #ifdef CONFIG_SYSV_FS
99 init_sysv_fs();
100 #endif
101
102 #ifdef CONFIG_HPFS_FS
103 init_hpfs_fs();
104 #endif
105
106 #ifdef CONFIG_ROOT_NFS
107 if (ROOT_DEV == MKDEV(UNNAMED_MAJOR, 255)) {
108 if (nfs_root_init(nfs_root_name, nfs_root_addrs) < 0) {
109 printk(KERN_ERR "Root-NFS: Unable to contact NFS server for root fs, using /dev/fd0 instead\n");
110 ROOT_DEV = MKDEV(FLOPPY_MAJOR, 0);
111 }
112 }
113 #endif
114
115 mount_root();
116 return 0;
117 }