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

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