Back to index

glibc  2.9
linux_fsinfo.h
Go to the documentation of this file.
00001 /* Constants from kernel header for various FSes.
00002    Copyright (C) 1998,1999,2000,2001,2002,2003,2005 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA.  */
00019 
00020 #ifndef _LINUX_FSINFO_H
00021 #define _LINUX_FSINFO_H     1
00022 
00023 /* These definitions come from the kernel headers.  But we cannot
00024    include the headers here because of type clashes.  If new
00025    filesystem types will become available we have to add the
00026    appropriate definitions here.*/
00027 
00028 /* Constants that identify the `adfs' filesystem.  */
00029 #define ADFS_SUPER_MAGIC    0xadf5
00030 
00031 /* Constants that identify the `affs' filesystem.  */
00032 #define AFFS_SUPER_MAGIC    0xadff
00033 
00034 /* Constants that identify the `autofs' filesystem.  */
00035 #define AUTOFS_SUPER_MAGIC  0x187
00036 
00037 /* Constants that identify the `bfs' filesystem.  */
00038 #define BFS_MAGIC           0x1BADFACE
00039 
00040 /* Constants that identify the `coda' filesystem.  */
00041 #define CODA_SUPER_MAGIC    0x73757245
00042 
00043 /* Constants that identify the `coherent' filesystem.  */
00044 #define COH_SUPER_MAGIC            0x012ff7b7
00045 
00046 /* Constant that identifies the `ramfs' filesystem.  */
00047 #define CRAMFS_MAGIC        0x28cd3d45
00048 
00049 /* Constant that identifies the `devfs' filesystem.  */
00050 #define DEVFS_SUPER_MAGIC   0x1373
00051 
00052 /* Constant that identifies the `devpts' filesystem.  */
00053 #define DEVPTS_SUPER_MAGIC  0x1cd1
00054 
00055 /* Constant that identifies the `efs' filesystem.  */
00056 #define EFS_SUPER_MAGIC            0x414A53
00057 #define EFS_MAGIC           0x072959
00058 
00059 /* Constant that identifies the `ext2' and `ext3' filesystems.  */
00060 #define EXT2_SUPER_MAGIC    0xef53
00061 
00062 /* Constant that identifies the `hpfs' filesystem.  */
00063 #define HPFS_SUPER_MAGIC    0xf995e849
00064 
00065 /* Constant that identifies the `iso9660' filesystem.  */
00066 #define ISOFS_SUPER_MAGIC   0x9660
00067 
00068 /* Constant that identifies the `jffs' filesystem.  */
00069 #define JFFS_SUPER_MAGIC    0x07c0
00070 
00071 /* Constant that identifies the `jffs2' filesystem.  */
00072 #define JFFS2_SUPER_MAGIC   0x72b6
00073 
00074 /* Constant that identifies the `jfs' filesystem.  */
00075 #define JFS_SUPER_MAGIC            0x3153464a
00076 
00077 /* Constants that identify the `minix2' filesystem.  */
00078 #define MINIX2_SUPER_MAGIC  0x2468
00079 #define MINIX2_SUPER_MAGIC2 0x2478
00080 
00081 /* Constants that identify the `minix' filesystem.  */
00082 #define MINIX_SUPER_MAGIC   0x137f
00083 #define MINIX_SUPER_MAGIC2  0x138F
00084 
00085 /* Constants that identify the `msdos' filesystem.  */
00086 #define MSDOS_SUPER_MAGIC   0x4d44
00087 
00088 /* Constants that identify the `ncp' filesystem.  */
00089 #define NCP_SUPER_MAGIC            0x564c
00090 
00091 /* Constants that identify the `nfs' filesystem.  */
00092 #define NFS_SUPER_MAGIC            0x6969
00093 
00094 /* Constants that identify the `ntfs' filesystem.  */
00095 #define NTFS_SUPER_MAGIC    0x5346544e
00096 
00097 /* Constants that identify the `proc' filesystem.  */
00098 #define PROC_SUPER_MAGIC    0x9fa0
00099 
00100 /* Constant that identifies the `usbdevfs' filesystem.  */
00101 #define USBDEVFS_SUPER_MAGIC       0x9fa2
00102 
00103 /* Constants that identify the `qnx4' filesystem.  */
00104 #define QNX4_SUPER_MAGIC    0x002f
00105 
00106 /* Constants that identify the `reiser' filesystem.  */
00107 #define REISERFS_SUPER_MAGIC       0x52654973
00108 
00109 /* Constant that identifies the `romfs' filesystem.  */
00110 #define ROMFS_SUPER_MAGIC   0x7275
00111 
00112 /* Constants that identify the `smb' filesystem.  */
00113 #define SMB_SUPER_MAGIC            0x517b
00114 
00115 /* Constants that identify the `sysV' filesystem.  */
00116 #define SYSV2_SUPER_MAGIC   0x012ff7b6
00117 #define SYSV4_SUPER_MAGIC   0x012ff7b5
00118 
00119 /* Constants that identify the `udf' filesystem.  */
00120 #define UDF_SUPER_MAGIC            0x15013346
00121 
00122 /* Constants that identify the `ufs' filesystem.  */
00123 #define UFS_MAGIC           0x00011954
00124 #define UFS_CIGAM           0x54190100 /* byteswapped MAGIC */
00125 
00126 /* Constants that identify the `xenix' filesystem.  */
00127 #define XENIX_SUPER_MAGIC   0x012ff7b4
00128 
00129 /* Constant that identifies the `shm' filesystem.  */
00130 #define SHMFS_SUPER_MAGIC   0x01021994
00131 
00132 /* Constants that identify the `xfs' filesystem.  */
00133 #define XFS_SUPER_MAGIC            0x58465342
00134 
00135 /* Constants that identify the `vxfs' filesystem.  */
00136 #define VXFS_SUPER_MAGIC    0xa501fcf5
00137 
00138 /* Constants that identify the `sysfsī filesystem.  */
00139 #define SYSFS_MAGIC         0x62656572
00140 
00141 /* Maximum link counts.  */
00142 #define COH_LINK_MAX        10000
00143 #define EXT2_LINK_MAX              32000
00144 #define MINIX2_LINK_MAX            65530
00145 #define MINIX_LINK_MAX             250
00146 #define REISERFS_LINK_MAX   64535
00147 #define SYSV_LINK_MAX              126     /* 127? 251? */
00148 #define UFS_LINK_MAX        EXT2_LINK_MAX
00149 #define XENIX_LINK_MAX             126     /* ?? */
00150 #define XFS_LINK_MAX        2147483647
00151 
00152 /* The Linux kernel header mentioned this as a kind of generic value.  */
00153 #define LINUX_LINK_MAX      127
00154 
00155 
00156 #endif /* linux_fsinfo.h */