]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/linux_fsinfo.h
Fix whitespace in ARM files to allow move.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / linux_fsinfo.h
CommitLineData
24f25de6 1/* Constants from kernel header for various FSes.
d4697bc9 2 Copyright (C) 1998-2014 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 15 You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
24f25de6
UD
18
19#ifndef _LINUX_FSINFO_H
20#define _LINUX_FSINFO_H 1
21
22/* These definitions come from the kernel headers. But we cannot
23 include the headers here because of type clashes. If new
24 filesystem types will become available we have to add the
6484ba5e 25 appropriate definitions here. */
1503837c 26
6e0a06fa 27/* Constant that identifies the `adfs' filesystem. */
24f25de6 28#define ADFS_SUPER_MAGIC 0xadf5
1503837c 29
6e0a06fa 30/* Constant that identifies the `affs' filesystem. */
24f25de6 31#define AFFS_SUPER_MAGIC 0xadff
1503837c 32
6e0a06fa 33/* Constant that identifies the `autofs' filesystem. */
d0501a24
UD
34#define AUTOFS_SUPER_MAGIC 0x187
35
6e0a06fa 36/* Constant that identifies the `bfs' filesystem. */
b8b4863d 37#define BFS_MAGIC 0x1badface
1503837c 38
6484ba5e 39/* Constant that identifies the `btrfs' filesystem. */
b8b4863d 40#define BTRFS_SUPER_MAGIC 0x9123683e
6484ba5e
AJ
41
42/* Constant that identifies the `cgroup' filesystem. */
b8b4863d 43#define CGROUP_SUPER_MAGIC 0x27e0eb
6484ba5e 44
6e0a06fa 45/* Constant that identifies the `coda' filesystem. */
24f25de6 46#define CODA_SUPER_MAGIC 0x73757245
1503837c 47
6e0a06fa 48/* Constant that identifies the `coherent' filesystem. */
1503837c
UD
49#define COH_SUPER_MAGIC 0x012ff7b7
50
564cd8b6
UD
51/* Constant that identifies the `ramfs' filesystem. */
52#define CRAMFS_MAGIC 0x28cd3d45
53
1503837c 54/* Constant that identifies the `devfs' filesystem. */
9c9f3b17 55#define DEVFS_SUPER_MAGIC 0x1373
1503837c
UD
56
57/* Constant that identifies the `devpts' filesystem. */
58#define DEVPTS_SUPER_MAGIC 0x1cd1
59
6e0a06fa 60/* Constants that identifies the `efs' filesystem. */
b8b4863d 61#define EFS_SUPER_MAGIC 0x414a53
564cd8b6 62#define EFS_MAGIC 0x072959
1503837c 63
67525cb8
AJ
64/* Constants that identifies the `evivar' filesystem. */
65#define EFIVARFS_MAGIC 0xde5e81e4
66
1503837c 67/* Constant that identifies the `ext2' and `ext3' filesystems. */
24f25de6 68#define EXT2_SUPER_MAGIC 0xef53
1503837c 69
67525cb8
AJ
70/* Constant that identifies the `f2fs' filesystem. */
71#define F2FS_SUPER_MAGIC 0xf2f52010
72
1503837c 73/* Constant that identifies the `hpfs' filesystem. */
24f25de6 74#define HPFS_SUPER_MAGIC 0xf995e849
1503837c
UD
75
76/* Constant that identifies the `iso9660' filesystem. */
24f25de6 77#define ISOFS_SUPER_MAGIC 0x9660
1503837c 78
69c708ed
RM
79/* Constant that identifies the `jffs' filesystem. */
80#define JFFS_SUPER_MAGIC 0x07c0
81
82/* Constant that identifies the `jffs2' filesystem. */
83#define JFFS2_SUPER_MAGIC 0x72b6
84
85/* Constant that identifies the `jfs' filesystem. */
86#define JFS_SUPER_MAGIC 0x3153464a
87
b8b4863d 88/* Constant that identifies the `logfs' filesystem. */
6e0a06fa
UD
89#define LOGFS_MAGIC_U32 0xc97e8168u
90
de283087
AD
91/* Constant that identifies the `lustre' filesystem. */
92#define LUSTRE_SUPER_MAGIC 0x0BD00BD0
93
1503837c 94/* Constants that identify the `minix2' filesystem. */
24f25de6
UD
95#define MINIX2_SUPER_MAGIC 0x2468
96#define MINIX2_SUPER_MAGIC2 0x2478
1503837c
UD
97
98/* Constants that identify the `minix' filesystem. */
99#define MINIX_SUPER_MAGIC 0x137f
100#define MINIX_SUPER_MAGIC2 0x138F
101
6e0a06fa 102/* Constant that identifies the `msdos' filesystem. */
24f25de6 103#define MSDOS_SUPER_MAGIC 0x4d44
1503837c 104
6e0a06fa 105/* Constant that identifies the `ncp' filesystem. */
24f25de6 106#define NCP_SUPER_MAGIC 0x564c
1503837c 107
6e0a06fa 108/* Constant that identifies the `nfs' filesystem. */
24f25de6 109#define NFS_SUPER_MAGIC 0x6969
1503837c 110
6e0a06fa 111/* Constant that identifies the `ntfs' filesystem. */
69c708ed
RM
112#define NTFS_SUPER_MAGIC 0x5346544e
113
6e0a06fa 114/* Constant that identifies the `proc' filesystem. */
24f25de6 115#define PROC_SUPER_MAGIC 0x9fa0
1503837c 116
d0501a24
UD
117/* Constant that identifies the `usbdevfs' filesystem. */
118#define USBDEVFS_SUPER_MAGIC 0x9fa2
119
6e0a06fa 120/* Constant that identifies the `qnx4' filesystem. */
cd33623e 121#define QNX4_SUPER_MAGIC 0x002f
1503837c 122
6e0a06fa 123/* Constant that identifies the `reiser' filesystem. */
cd33623e 124#define REISERFS_SUPER_MAGIC 0x52654973
1503837c 125
69c708ed
RM
126/* Constant that identifies the `romfs' filesystem. */
127#define ROMFS_SUPER_MAGIC 0x7275
128
6e0a06fa
UD
129/* Constant that identifies the `shm' filesystem. */
130#define SHMFS_SUPER_MAGIC 0x01021994
131
132/* Constant that identifies the `smb' filesystem. */
24f25de6 133#define SMB_SUPER_MAGIC 0x517b
1503837c 134
b8b4863d 135/* Constant that identifies the `sysfs' filesystem. */
6e0a06fa
UD
136#define SYSFS_MAGIC 0x62656572
137
1503837c 138/* Constants that identify the `sysV' filesystem. */
24f25de6 139#define SYSV2_SUPER_MAGIC 0x012ff7b6
1503837c
UD
140#define SYSV4_SUPER_MAGIC 0x012ff7b5
141
6e0a06fa 142/* Constant that identifies the `udf' filesystem. */
69c708ed
RM
143#define UDF_SUPER_MAGIC 0x15013346
144
6e0a06fa 145/* Constant that identify the `ufs' filesystem. */
24f25de6
UD
146#define UFS_MAGIC 0x00011954
147#define UFS_CIGAM 0x54190100 /* byteswapped MAGIC */
148
6e0a06fa
UD
149/* Constant that identifies the `vxfs' filesystem. */
150#define VXFS_SUPER_MAGIC 0xa501fcf5
1503837c 151
6e0a06fa
UD
152/* Constant that identifies the `xenix' filesystem. */
153#define XENIX_SUPER_MAGIC 0x012ff7b4
afdda55a 154
6e0a06fa 155/* Constant that identifies the `xfs' filesystem. */
75c151a1
UD
156#define XFS_SUPER_MAGIC 0x58465342
157
24f25de6 158/* Maximum link counts. */
1503837c 159#define COH_LINK_MAX 10000
24f25de6 160#define EXT2_LINK_MAX 32000
de283087 161#define EXT4_LINK_MAX 65000
67525cb8 162#define F2FS_LINK_MAX 32000
de283087 163#define LUSTRE_LINK_MAX EXT4_LINK_MAX
24f25de6 164#define MINIX2_LINK_MAX 65530
1503837c 165#define MINIX_LINK_MAX 250
cd33623e 166#define REISERFS_LINK_MAX 64535
24f25de6 167#define SYSV_LINK_MAX 126 /* 127? 251? */
24f25de6 168#define UFS_LINK_MAX EXT2_LINK_MAX
1503837c 169#define XENIX_LINK_MAX 126 /* ?? */
75c151a1 170#define XFS_LINK_MAX 2147483647
24f25de6 171
0d83b42e
RM
172/* The Linux kernel header mentioned this as a kind of generic value. */
173#define LINUX_LINK_MAX 127
174
175
24f25de6 176#endif /* linux_fsinfo.h */