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/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 /* This may be used only once, enforced by 'static int callable' */
  34 asmlinkage int sys_setup(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  35 {
  36         static int callable = 1;
  37 
  38         if (!callable)
  39                 return -1;
  40         callable = 0;
  41 
  42         device_setup();
  43 
  44 #ifdef CONFIG_MINIX_FS
  45         register_filesystem(&(struct file_system_type)
  46                 {minix_read_super, "minix", 1, NULL});
  47 #endif
  48 
  49 #ifdef CONFIG_EXT_FS
  50         register_filesystem(&(struct file_system_type)
  51                 {ext_read_super, "ext", 1, NULL});
  52 #endif
  53 
  54 #ifdef CONFIG_EXT2_FS
  55         register_filesystem(&(struct file_system_type)
  56                 {ext2_read_super, "ext2", 1, NULL});
  57 #endif
  58 
  59 #ifdef CONFIG_XIA_FS
  60         register_filesystem(&(struct file_system_type)
  61                 {xiafs_read_super, "xiafs", 1, NULL});
  62 #endif
  63 #ifdef CONFIG_UMSDOS_FS
  64         register_filesystem(&(struct file_system_type)
  65         {UMSDOS_read_super,     "umsdos",       1, NULL});
  66 #endif
  67 
  68 #ifdef CONFIG_MSDOS_FS
  69         register_filesystem(&(struct file_system_type)
  70                 {msdos_read_super, "msdos", 1, NULL});
  71 #endif
  72 
  73 #ifdef CONFIG_PROC_FS
  74         register_filesystem(&(struct file_system_type)
  75                 {proc_read_super, "proc", 0, NULL});
  76 #endif
  77 
  78 #ifdef CONFIG_NFS_FS
  79         register_filesystem(&(struct file_system_type)
  80                 {nfs_read_super, "nfs", 0, NULL});
  81 #endif
  82 
  83 #ifdef CONFIG_SMB_FS
  84         register_filesystem(&(struct file_system_type)
  85                 {smb_read_super, "smbfs", 0, NULL});
  86 #endif
  87 
  88 #ifdef CONFIG_ISO9660_FS
  89         register_filesystem(&(struct file_system_type)
  90                 {isofs_read_super, "iso9660", 1, NULL});
  91 #endif
  92 
  93 #ifdef CONFIG_SYSV_FS
  94         register_filesystem(&(struct file_system_type)
  95                 {sysv_read_super, "xenix", 1, NULL});
  96 
  97         register_filesystem(&(struct file_system_type)
  98                 {sysv_read_super, "sysv", 1, NULL});
  99 
 100         register_filesystem(&(struct file_system_type)
 101                 {sysv_read_super, "coherent", 1, NULL});
 102 #endif
 103 
 104 #ifdef CONFIG_HPFS_FS
 105         register_filesystem(&(struct file_system_type)
 106                 {hpfs_read_super, "hpfs", 1, NULL});
 107 #endif
 108 
 109 #ifdef CONFIG_ROOT_NFS
 110         if (nfs_root_name [0]){
 111                 if (nfs_root_init(nfs_root_name) < 0) {
 112                         printk(KERN_ERR "Root-NFS: Unable to mount NFS filesystem as /, using /dev/fd0 instead\n");
 113                         ROOT_DEV = MKDEV(FLOPPY_MAJOR, 0);
 114                 }
 115         }
 116 #endif
 117         mount_root();
 118         return 0;
 119 }

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