root/fs/filesystems.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. sys_setup

   1 /*
   2  *  linux/fs/filesystems.c
   3  *
   4  *  Copyright (C) 1991, 1992  Linus Torvalds
   5  *
   6  *  table of configured filesystems
   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 extern void binfmt_setup(void);
  29 
  30 #ifdef CONFIG_ROOT_NFS
  31 extern int nfs_root_init(char *nfsname, char *nfsaddrs);
  32 extern char nfs_root_name [];
  33 extern char nfs_root_addrs [];
  34 #endif
  35 
  36 /* This may be used only once, enforced by 'static int callable' */
  37 asmlinkage int sys_setup(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  38 {
  39         static int callable = 1;
  40 
  41         if (!callable)
  42                 return -1;
  43         callable = 0;
  44 
  45         device_setup();
  46 
  47         binfmt_setup();
  48 
  49 #ifdef CONFIG_EXT_FS
  50         init_ext_fs();
  51 #endif
  52 
  53 #ifdef CONFIG_EXT2_FS
  54         init_ext2_fs();
  55 #endif
  56 
  57 #ifdef CONFIG_XIA_FS
  58         init_xiafs_fs();
  59 #endif
  60 
  61 #ifdef CONFIG_MINIX_FS
  62         init_minix_fs();
  63 #endif
  64 
  65 #ifdef CONFIG_UMSDOS_FS
  66         init_umsdos_fs();
  67 #endif
  68 
  69 #ifdef CONFIG_FAT_FS
  70         init_fat_fs();
  71 #endif
  72 
  73 #ifdef CONFIG_MSDOS_FS
  74         init_msdos_fs();
  75 #endif
  76 
  77 #ifdef CONFIG_VFAT_FS
  78         init_vfat_fs();
  79 #endif
  80 
  81 #ifdef CONFIG_PROC_FS
  82         init_proc_fs();
  83 #endif
  84 
  85 #ifdef CONFIG_NFS_FS
  86         init_nfs_fs();
  87 #endif
  88 
  89 #ifdef CONFIG_SMB_FS
  90         init_smb_fs();
  91 #endif
  92 
  93 #ifdef CONFIG_NCP_FS
  94         init_ncp_fs();
  95 #endif
  96 
  97 #ifdef CONFIG_ISO9660_FS
  98         init_iso9660_fs();
  99 #endif
 100 
 101 #ifdef CONFIG_SYSV_FS
 102         init_sysv_fs();
 103 #endif
 104 
 105 #ifdef CONFIG_HPFS_FS
 106         init_hpfs_fs();
 107 #endif
 108 
 109 #ifdef CONFIG_ROOT_NFS
 110         if (ROOT_DEV == MKDEV(UNNAMED_MAJOR, 255)) {
 111                 if (nfs_root_init(nfs_root_name, nfs_root_addrs) < 0) {
 112                         printk(KERN_ERR "Root-NFS: Unable to contact NFS server for root fs, using /dev/fd0 instead\n");
 113                         ROOT_DEV = MKDEV(FLOPPY_MAJOR, 0);
 114                 }
 115         }
 116 #endif
 117 
 118         mount_root();
 119         return 0;
 120 }

/* [previous][next][first][last][top][bottom][index][help] */