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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -29,6 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | #define HPFS_SUPER_MAGIC 0xf995e849 |
| 30 | 30 | #define ISOFS_SUPER_MAGIC 0x9660 |
| 31 | 31 | #define JFFS2_SUPER_MAGIC 0x72b6 |
| 32 | +#define XFS_SUPER_MAGIC 0x58465342 /* "XFSB" */ | |
| 32 | 33 | #define PSTOREFS_MAGIC 0x6165676C |
| 33 | 34 | #define EFIVARFS_MAGIC 0xde5e81e4 |
| 34 | 35 | #define HOSTFS_SUPER_MAGIC 0x00c0ffee |