From: Darrick J. Wong Date: Tue, 25 Oct 2016 01:37:28 +0000 (+1100) Subject: xfs: add reflink feature flag to geometry X-Git-Tag: v4.9.0-rc1~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0b8028cb025f36ab71ab271cab9529d8616ac64;p=thirdparty%2Fxfsprogs-dev.git xfs: add reflink feature flag to geometry Source kernel commit: f0ec1b8ef11df0a51954df7e3ff3ca4aadb0d34b Report the reflink feature in the XFS geometry so that xfs_info and friends know the filesystem has this feature. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index 085ea6ff7..f291a5352 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -230,7 +230,8 @@ typedef struct xfs_fsop_resblks { #define XFS_FSOP_GEOM_FLAGS_FTYPE 0x10000 /* inode directory types */ #define XFS_FSOP_GEOM_FLAGS_FINOBT 0x20000 /* free inode btree */ #define XFS_FSOP_GEOM_FLAGS_SPINODES 0x40000 /* sparse inode chunks */ -#define XFS_FSOP_GEOM_FLAGS_RMAPBT 0x80000 /* Reverse mapping btree */ +#define XFS_FSOP_GEOM_FLAGS_RMAPBT 0x80000 /* reverse mapping btree */ +#define XFS_FSOP_GEOM_FLAGS_REFLINK 0x100000 /* files can share blocks */ /* * Minimum and maximum sizes need for growth checks.