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

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