]>
Commit | Line | Data |
---|---|---|
24f25de6 | 1 | /* Constants from kernel header for various FSes. |
75c151a1 | 2 | Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
24f25de6 UD |
3 | This file is part of the GNU C Library. |
4 | ||
5 | The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
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. | |
24f25de6 UD |
9 | |
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 | |
41bdb6e2 | 13 | Lesser General Public License for more details. |
24f25de6 | 14 | |
41bdb6e2 AJ |
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. */ | |
24f25de6 UD |
19 | |
20 | #ifndef _LINUX_FSINFO_H | |
21 | #define _LINUX_FSINFO_H 1 | |
22 | ||
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.*/ | |
1503837c UD |
27 | |
28 | /* Constants that identify the `adfs' filesystem. */ | |
24f25de6 | 29 | #define ADFS_SUPER_MAGIC 0xadf5 |
1503837c UD |
30 | |
31 | /* Constants that identify the `affs' filesystem. */ | |
24f25de6 | 32 | #define AFFS_SUPER_MAGIC 0xadff |
1503837c UD |
33 | |
34 | /* Constants that identify the `bfs' filesystem. */ | |
26d63253 | 35 | #define BFS_MAGIC 0x1BADFACE |
1503837c UD |
36 | |
37 | /* Constants that identify the `coda' filesystem. */ | |
24f25de6 | 38 | #define CODA_SUPER_MAGIC 0x73757245 |
1503837c UD |
39 | |
40 | /* Constants that identify the `coherent' filesystem. */ | |
41 | #define COH_SUPER_MAGIC 0x012ff7b7 | |
42 | ||
43 | /* Constant that identifies the `devfs' filesystem. */ | |
9c9f3b17 | 44 | #define DEVFS_SUPER_MAGIC 0x1373 |
1503837c UD |
45 | |
46 | /* Constant that identifies the `devpts' filesystem. */ | |
47 | #define DEVPTS_SUPER_MAGIC 0x1cd1 | |
48 | ||
49 | /* Constant that identifies the `efs' filesystem. */ | |
cd33623e | 50 | #define EFS_SUPER_MAGIC 0x414A53 |
1503837c UD |
51 | |
52 | /* Constant that identifies the `ext2' and `ext3' filesystems. */ | |
24f25de6 | 53 | #define EXT2_SUPER_MAGIC 0xef53 |
1503837c UD |
54 | |
55 | /* Constant that identifies the `hpfs' filesystem. */ | |
24f25de6 | 56 | #define HPFS_SUPER_MAGIC 0xf995e849 |
1503837c UD |
57 | |
58 | /* Constant that identifies the `iso9660' filesystem. */ | |
24f25de6 | 59 | #define ISOFS_SUPER_MAGIC 0x9660 |
1503837c | 60 | |
69c708ed RM |
61 | /* Constant that identifies the `jffs' filesystem. */ |
62 | #define JFFS_SUPER_MAGIC 0x07c0 | |
63 | ||
64 | /* Constant that identifies the `jffs2' filesystem. */ | |
65 | #define JFFS2_SUPER_MAGIC 0x72b6 | |
66 | ||
67 | /* Constant that identifies the `jfs' filesystem. */ | |
68 | #define JFS_SUPER_MAGIC 0x3153464a | |
69 | ||
1503837c | 70 | /* Constants that identify the `minix2' filesystem. */ |
24f25de6 UD |
71 | #define MINIX2_SUPER_MAGIC 0x2468 |
72 | #define MINIX2_SUPER_MAGIC2 0x2478 | |
1503837c UD |
73 | |
74 | /* Constants that identify the `minix' filesystem. */ | |
75 | #define MINIX_SUPER_MAGIC 0x137f | |
76 | #define MINIX_SUPER_MAGIC2 0x138F | |
77 | ||
78 | /* Constants that identify the `msdos' filesystem. */ | |
24f25de6 | 79 | #define MSDOS_SUPER_MAGIC 0x4d44 |
1503837c UD |
80 | |
81 | /* Constants that identify the `ncp' filesystem. */ | |
24f25de6 | 82 | #define NCP_SUPER_MAGIC 0x564c |
1503837c UD |
83 | |
84 | /* Constants that identify the `nfs' filesystem. */ | |
24f25de6 | 85 | #define NFS_SUPER_MAGIC 0x6969 |
1503837c | 86 | |
69c708ed RM |
87 | /* Constants that identify the `ntfs' filesystem. */ |
88 | #define NTFS_SUPER_MAGIC 0x5346544e | |
89 | ||
1503837c | 90 | /* Constants that identify the `proc' filesystem. */ |
24f25de6 | 91 | #define PROC_SUPER_MAGIC 0x9fa0 |
1503837c UD |
92 | |
93 | /* Constants that identify the `qnx4' filesystem. */ | |
cd33623e | 94 | #define QNX4_SUPER_MAGIC 0x002f |
1503837c UD |
95 | |
96 | /* Constants that identify the `reiser' filesystem. */ | |
cd33623e | 97 | #define REISERFS_SUPER_MAGIC 0x52654973 |
1503837c | 98 | |
69c708ed RM |
99 | /* Constant that identifies the `romfs' filesystem. */ |
100 | #define ROMFS_SUPER_MAGIC 0x7275 | |
101 | ||
1503837c | 102 | /* Constants that identify the `smb' filesystem. */ |
24f25de6 | 103 | #define SMB_SUPER_MAGIC 0x517b |
1503837c UD |
104 | |
105 | /* Constants that identify the `sysV' filesystem. */ | |
24f25de6 | 106 | #define SYSV2_SUPER_MAGIC 0x012ff7b6 |
1503837c UD |
107 | #define SYSV4_SUPER_MAGIC 0x012ff7b5 |
108 | ||
69c708ed RM |
109 | /* Constants that identify the `udf' filesystem. */ |
110 | #define UDF_SUPER_MAGIC 0x15013346 | |
111 | ||
1503837c | 112 | /* Constants that identify the `ufs' filesystem. */ |
24f25de6 UD |
113 | #define UFS_MAGIC 0x00011954 |
114 | #define UFS_CIGAM 0x54190100 /* byteswapped MAGIC */ | |
115 | ||
1503837c UD |
116 | /* Constants that identify the `xenix' filesystem. */ |
117 | #define XENIX_SUPER_MAGIC 0x012ff7b4 | |
118 | ||
afdda55a | 119 | /* Constant that identifies the `shm' filesystem. */ |
28b20578 | 120 | #define SHMFS_SUPER_MAGIC 0x01021994 |
afdda55a | 121 | |
75c151a1 UD |
122 | /* Constants that identify the `xfs' filesystem. */ |
123 | #define XFS_SUPER_MAGIC 0x58465342 | |
124 | ||
24f25de6 | 125 | /* Maximum link counts. */ |
1503837c | 126 | #define COH_LINK_MAX 10000 |
24f25de6 | 127 | #define EXT2_LINK_MAX 32000 |
24f25de6 | 128 | #define MINIX2_LINK_MAX 65530 |
1503837c | 129 | #define MINIX_LINK_MAX 250 |
cd33623e | 130 | #define REISERFS_LINK_MAX 64535 |
24f25de6 | 131 | #define SYSV_LINK_MAX 126 /* 127? 251? */ |
24f25de6 | 132 | #define UFS_LINK_MAX EXT2_LINK_MAX |
1503837c | 133 | #define XENIX_LINK_MAX 126 /* ?? */ |
75c151a1 | 134 | #define XFS_LINK_MAX 2147483647 |
24f25de6 | 135 | |
0d83b42e RM |
136 | /* The Linux kernel header mentioned this as a kind of generic value. */ |
137 | #define LINUX_LINK_MAX 127 | |
138 | ||
139 | ||
24f25de6 | 140 | #endif /* linux_fsinfo.h */ |