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 
  24 extern void device_setup(void);
  25 
  26 /* This may be used only once, enforced by 'static int callable' */
  27 asmlinkage int sys_setup(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  28 {
  29         static int callable = 1;
  30 
  31         if (!callable)
  32                 return -1;
  33         callable = 0;
  34 
  35         device_setup();
  36 
  37 #ifdef CONFIG_MINIX_FS
  38         register_filesystem(&(struct file_system_type)
  39                 {minix_read_super, "minix", 1, NULL});
  40 #endif
  41 
  42 #ifdef CONFIG_EXT_FS
  43         register_filesystem(&(struct file_system_type)
  44                 {ext_read_super, "ext", 1, NULL});
  45 #endif
  46 
  47 #ifdef CONFIG_EXT2_FS
  48         register_filesystem(&(struct file_system_type)
  49                 {ext2_read_super, "ext2", 1, NULL});
  50 #endif
  51 
  52 #ifdef CONFIG_XIA_FS
  53         register_filesystem(&(struct file_system_type)
  54                 {xiafs_read_super, "xiafs", 1, NULL});
  55 #endif
  56 #ifdef CONFIG_UMSDOS_FS
  57         register_filesystem(&(struct file_system_type)
  58         {UMSDOS_read_super,     "umsdos",       1, NULL});
  59 #endif
  60 
  61 #ifdef CONFIG_MSDOS_FS
  62         register_filesystem(&(struct file_system_type)
  63                 {msdos_read_super, "msdos", 1, NULL});
  64 #endif
  65 
  66 #ifdef CONFIG_PROC_FS
  67         register_filesystem(&(struct file_system_type)
  68                 {proc_read_super, "proc", 0, NULL});
  69 #endif
  70 
  71 #ifdef CONFIG_NFS_FS
  72         register_filesystem(&(struct file_system_type)
  73                 {nfs_read_super, "nfs", 0, NULL});
  74 #endif
  75 
  76 #ifdef CONFIG_ISO9660_FS
  77         register_filesystem(&(struct file_system_type)
  78                 {isofs_read_super, "iso9660", 1, NULL});
  79 #endif
  80 
  81 #ifdef CONFIG_SYSV_FS
  82         register_filesystem(&(struct file_system_type)
  83                 {sysv_read_super, "xenix", 1, NULL});
  84 
  85         register_filesystem(&(struct file_system_type)
  86                 {sysv_read_super, "sysv", 1, NULL});
  87 
  88         register_filesystem(&(struct file_system_type)
  89                 {sysv_read_super, "coherent", 1, NULL});
  90 #endif
  91 
  92 #ifdef CONFIG_HPFS_FS
  93         register_filesystem(&(struct file_system_type)
  94                 {hpfs_read_super, "hpfs", 1, NULL});
  95 #endif
  96 
  97         mount_root();
  98         return 0;
  99 }

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