History

xfs: add a define for statfs magic to uapi

Needed by userspace programs that call fstatfs(). It'd be natural to publish XFS_SB_MAGIC in uapi, but while these two have identical values, they have different semantic meaning: one is an enum cookie meant for statfs, the other a signature of the on-disk format.

Adam Borowski committed 8 years ago

Commit dddde681 parent 48318222 files · +4 −2Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/magic.h+1−0
@@ -29,6 +29,7 @@ · 28 unmodified lines
29#define HPFS_SUPER_MAGIC 0xf995e84929#define HPFS_SUPER_MAGIC 0xf995e849
30#define ISOFS_SUPER_MAGIC 0x966030#define ISOFS_SUPER_MAGIC 0x9660
31#define JFFS2_SUPER_MAGIC 0x72b631#define JFFS2_SUPER_MAGIC 0x72b6
32#define XFS_SUPER_MAGIC 0x58465342 /* "XFSB" */
32#define PSTOREFS_MAGIC 0x6165676C33#define PSTOREFS_MAGIC 0x6165676C
33#define EFIVARFS_MAGIC 0xde5e81e434#define EFIVARFS_MAGIC 0xde5e81e4
34#define HOSTFS_SUPER_MAGIC 0x00c0ffee35#define HOSTFS_SUPER_MAGIC 0x00c0ffee