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
2929 #define HPFS_SUPER_MAGIC 0xf995e849
3030 #define ISOFS_SUPER_MAGIC 0x9660
3131 #define JFFS2_SUPER_MAGIC 0x72b6
32+#define XFS_SUPER_MAGIC 0x58465342 /* "XFSB" */
3233 #define PSTOREFS_MAGIC 0x6165676C
3334 #define EFIVARFS_MAGIC 0xde5e81e4
3435 #define HOSTFS_SUPER_MAGIC 0x00c0ffee