]> git.ipfire.org Git - thirdparty/util-linux.git/blame - include/statfs_magic.h
dmesg: add --follow-new
[thirdparty/util-linux.git] / include / statfs_magic.h
CommitLineData
df019e9b
KZ
1#ifndef UTIL_LINUX_STATFS_MAGIC_H
2#define UTIL_LINUX_STATFS_MAGIC_H
3
8f806bb1
KZ
4#include <sys/statfs.h>
5
6/*
7 * If possible then don't depend on internal libc __SWORD_TYPE type.
8 */
9#ifdef __GNUC__
64d0cee6 10#define F_TYPE_EQUAL(a, b) (a == (__typeof__(a)) b)
8f806bb1 11#else
64d0cee6 12#define F_TYPE_EQUAL(a, b) (a == (__SWORD_TYPE) b)
8f806bb1
KZ
13#endif
14
df019e9b 15/*
9e930041 16 * Unfortunately, Linux kernel header file <linux/magic.h> is incomplete
df019e9b
KZ
17 * mess and kernel returns by statfs f_type many numbers that are nowhere
18 * specified (in API).
19 *
20 * This is collection of the magic numbers.
21 */
22#define STATFS_ADFS_MAGIC 0xadf5
23#define STATFS_AFFS_MAGIC 0xadff
24#define STATFS_AFS_MAGIC 0x5346414F
25#define STATFS_AUTOFS_MAGIC 0x0187
26#define STATFS_BDEVFS_MAGIC 0x62646576
27#define STATFS_BEFS_MAGIC 0x42465331
28#define STATFS_BFS_MAGIC 0x1BADFACE
29#define STATFS_BINFMTFS_MAGIC 0x42494e4d
30#define STATFS_BTRFS_MAGIC 0x9123683E
31#define STATFS_CEPH_MAGIC 0x00c36400
32#define STATFS_CGROUP_MAGIC 0x27e0eb
624996a9 33#define STATFS_CGROUP2_MAGIC 0x63677270
df019e9b
KZ
34#define STATFS_CIFS_MAGIC 0xff534d42
35#define STATFS_CODA_MAGIC 0x73757245
36#define STATFS_CONFIGFS_MAGIC 0x62656570
37#define STATFS_CRAMFS_MAGIC 0x28cd3d45
38#define STATFS_DEBUGFS_MAGIC 0x64626720
39#define STATFS_DEVPTS_MAGIC 0x1cd1
40#define STATFS_ECRYPTFS_MAGIC 0xf15f
41#define STATFS_EFIVARFS_MAGIC 0xde5e81e4
42#define STATFS_EFS_MAGIC 0x414A53
43#define STATFS_EXOFS_MAGIC 0x5DF5
44#define STATFS_EXT2_MAGIC 0xEF53
45#define STATFS_EXT3_MAGIC 0xEF53
46#define STATFS_EXT4_MAGIC 0xEF53
47#define STATFS_F2FS_MAGIC 0xF2F52010
48#define STATFS_FUSE_MAGIC 0x65735546
49#define STATFS_FUTEXFS_MAGIC 0xBAD1DEA
50#define STATFS_GFS2_MAGIC 0x01161970
51#define STATFS_HFSPLUS_MAGIC 0x482b
52#define STATFS_HOSTFS_MAGIC 0x00c0ffee
53#define STATFS_HPFS_MAGIC 0xf995e849
54#define STATFS_HPPFS_MAGIC 0xb00000ee
55#define STATFS_HUGETLBFS_MAGIC 0x958458f6
56#define STATFS_ISOFS_MAGIC 0x9660
57#define STATFS_JFFS2_MAGIC 0x72b6
58#define STATFS_JFS_MAGIC 0x3153464a
59#define STATFS_LOGFS_MAGIC 0xc97e8168
60#define STATFS_MINIX2_MAGIC 0x2468
61#define STATFS_MINIX2_MAGIC2 0x2478
62#define STATFS_MINIX3_MAGIC 0x4d5a
63#define STATFS_MINIX_MAGIC 0x137F
64#define STATFS_MINIX_MAGIC2 0x138F
65#define STATFS_MQUEUE_MAGIC 0x19800202
66#define STATFS_MSDOS_MAGIC 0x4d44
67#define STATFS_NCP_MAGIC 0x564c
68#define STATFS_NFS_MAGIC 0x6969
69#define STATFS_NILFS_MAGIC 0x3434
70#define STATFS_NTFS_MAGIC 0x5346544e
71#define STATFS_OCFS2_MAGIC 0x7461636f
72#define STATFS_OMFS_MAGIC 0xC2993D87
73#define STATFS_OPENPROMFS_MAGIC 0x9fa1
74#define STATFS_PIPEFS_MAGIC 0x50495045
75#define STATFS_PROC_MAGIC 0x9fa0
76#define STATFS_PSTOREFS_MAGIC 0x6165676C
77#define STATFS_QNX4_MAGIC 0x002f
78#define STATFS_QNX6_MAGIC 0x68191122
79#define STATFS_RAMFS_MAGIC 0x858458f6
80#define STATFS_REISERFS_MAGIC 0x52654973
81#define STATFS_ROMFS_MAGIC 0x7275
82#define STATFS_SECURITYFS_MAGIC 0x73636673
83#define STATFS_SELINUXFS_MAGIC 0xf97cff8c
84#define STATFS_SMACKFS_MAGIC 0x43415d53
85#define STATFS_SMB_MAGIC 0x517B
86#define STATFS_SOCKFS_MAGIC 0x534F434B
87#define STATFS_SQUASHFS_MAGIC 0x73717368
88#define STATFS_SYSFS_MAGIC 0x62656572
89#define STATFS_TMPFS_MAGIC 0x01021994
90#define STATFS_UBIFS_MAGIC 0x24051905
91#define STATFS_UDF_MAGIC 0x15013346
92#define STATFS_UFS2_MAGIC 0x19540119
93#define STATFS_UFS_MAGIC 0x00011954
94#define STATFS_V9FS_MAGIC 0x01021997
95#define STATFS_VXFS_MAGIC 0xa501FCF5
96#define STATFS_XENFS_MAGIC 0xabba1974
97#define STATFS_XFS_MAGIC 0x58465342
98
99#endif /* UTIL_LINUX_STATFS_MAGIC_H */
100