OSDN Git Service

xfs: add a define for statfs magic to uapi
authorAdam Borowski <kilobyte@angband.pl>
Thu, 18 Oct 2018 06:20:19 +0000 (17:20 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Oct 2018 06:20:19 +0000 (17:20 +1100)
commitdddde68b8f06dd83486124b8d245e7bfb15c185d
tree205c8d68e7c252672a19de2e9e4ce69c81d5b918
parent4831822ff12e9f2bc084da892045551fdf3d112c
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.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_super.c
include/uapi/linux/magic.h