Update.
[glibc.git] / sysdeps / unix / sysv / linux / linux_fsinfo.h
blob13c385626611618661943ea361c15af447e7f64a
1 /* Constants from kernel header for various FSes.
2 Copyright (C) 1998,1999,2000,2001,2002,2003 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
20 #ifndef _LINUX_FSINFO_H
21 #define _LINUX_FSINFO_H 1
23 /* These definitions come from the kernel headers. But we cannot
24 include the headers here because of type clashes. If new
25 filesystem types will become available we have to add the
26 appropriate definitions here.*/
28 /* Constants that identify the `adfs' filesystem. */
29 #define ADFS_SUPER_MAGIC 0xadf5
31 /* Constants that identify the `affs' filesystem. */
32 #define AFFS_SUPER_MAGIC 0xadff
34 /* Constants that identify the `autofs' filesystem. */
35 #define AUTOFS_SUPER_MAGIC 0x187
37 /* Constants that identify the `bfs' filesystem. */
38 #define BFS_MAGIC 0x1BADFACE
40 /* Constants that identify the `coda' filesystem. */
41 #define CODA_SUPER_MAGIC 0x73757245
43 /* Constants that identify the `coherent' filesystem. */
44 #define COH_SUPER_MAGIC 0x012ff7b7
46 /* Constant that identifies the `ramfs' filesystem. */
47 #define CRAMFS_MAGIC 0x28cd3d45
49 /* Constant that identifies the `devfs' filesystem. */
50 #define DEVFS_SUPER_MAGIC 0x1373
52 /* Constant that identifies the `devpts' filesystem. */
53 #define DEVPTS_SUPER_MAGIC 0x1cd1
55 /* Constant that identifies the `efs' filesystem. */
56 #define EFS_SUPER_MAGIC 0x414A53
57 #define EFS_MAGIC 0x072959
59 /* Constant that identifies the `ext2' and `ext3' filesystems. */
60 #define EXT2_SUPER_MAGIC 0xef53
62 /* Constant that identifies the `hpfs' filesystem. */
63 #define HPFS_SUPER_MAGIC 0xf995e849
65 /* Constant that identifies the `iso9660' filesystem. */
66 #define ISOFS_SUPER_MAGIC 0x9660
68 /* Constant that identifies the `jffs' filesystem. */
69 #define JFFS_SUPER_MAGIC 0x07c0
71 /* Constant that identifies the `jffs2' filesystem. */
72 #define JFFS2_SUPER_MAGIC 0x72b6
74 /* Constant that identifies the `jfs' filesystem. */
75 #define JFS_SUPER_MAGIC 0x3153464a
77 /* Constants that identify the `minix2' filesystem. */
78 #define MINIX2_SUPER_MAGIC 0x2468
79 #define MINIX2_SUPER_MAGIC2 0x2478
81 /* Constants that identify the `minix' filesystem. */
82 #define MINIX_SUPER_MAGIC 0x137f
83 #define MINIX_SUPER_MAGIC2 0x138F
85 /* Constants that identify the `msdos' filesystem. */
86 #define MSDOS_SUPER_MAGIC 0x4d44
88 /* Constants that identify the `ncp' filesystem. */
89 #define NCP_SUPER_MAGIC 0x564c
91 /* Constants that identify the `nfs' filesystem. */
92 #define NFS_SUPER_MAGIC 0x6969
94 /* Constants that identify the `ntfs' filesystem. */
95 #define NTFS_SUPER_MAGIC 0x5346544e
97 /* Constants that identify the `proc' filesystem. */
98 #define PROC_SUPER_MAGIC 0x9fa0
100 /* Constant that identifies the `usbdevfs' filesystem. */
101 #define USBDEVFS_SUPER_MAGIC 0x9fa2
103 /* Constants that identify the `qnx4' filesystem. */
104 #define QNX4_SUPER_MAGIC 0x002f
106 /* Constants that identify the `reiser' filesystem. */
107 #define REISERFS_SUPER_MAGIC 0x52654973
109 /* Constant that identifies the `romfs' filesystem. */
110 #define ROMFS_SUPER_MAGIC 0x7275
112 /* Constants that identify the `smb' filesystem. */
113 #define SMB_SUPER_MAGIC 0x517b
115 /* Constants that identify the `sysV' filesystem. */
116 #define SYSV2_SUPER_MAGIC 0x012ff7b6
117 #define SYSV4_SUPER_MAGIC 0x012ff7b5
119 /* Constants that identify the `udf' filesystem. */
120 #define UDF_SUPER_MAGIC 0x15013346
122 /* Constants that identify the `ufs' filesystem. */
123 #define UFS_MAGIC 0x00011954
124 #define UFS_CIGAM 0x54190100 /* byteswapped MAGIC */
126 /* Constants that identify the `xenix' filesystem. */
127 #define XENIX_SUPER_MAGIC 0x012ff7b4
129 /* Constant that identifies the `shm' filesystem. */
130 #define SHMFS_SUPER_MAGIC 0x01021994
132 /* Constants that identify the `xfs' filesystem. */
133 #define XFS_SUPER_MAGIC 0x58465342
135 /* Constants that identify the `vxfs' filesystem. */
136 #define VXFS_SUPER_MAGIC 0xa501fcf5
138 /* Maximum link counts. */
139 #define COH_LINK_MAX 10000
140 #define EXT2_LINK_MAX 32000
141 #define MINIX2_LINK_MAX 65530
142 #define MINIX_LINK_MAX 250
143 #define REISERFS_LINK_MAX 64535
144 #define SYSV_LINK_MAX 126 /* 127? 251? */
145 #define UFS_LINK_MAX EXT2_LINK_MAX
146 #define XENIX_LINK_MAX 126 /* ?? */
147 #define XFS_LINK_MAX 2147483647
149 /* The Linux kernel header mentioned this as a kind of generic value. */
150 #define LINUX_LINK_MAX 127
153 #endif /* linux_fsinfo.h */