From: Darrick J. Wong Date: Tue, 25 Oct 2016 01:46:51 +0000 (+1100) Subject: xfs: recognize the reflink feature bit X-Git-Tag: v4.9.0-rc1~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c834d2078b2341a5252dd0fe4cdd907e1b74149;p=thirdparty%2Fxfsprogs-dev.git xfs: recognize the reflink feature bit Source kernel commit: e54b5bf9d7aeb92d92c7f5115035e6a851d0f0c5 Add the reflink feature flag to the set of recognized feature flags. This enables users to write to reflink filesystems. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/libxfs/xfs_format.h b/libxfs/xfs_format.h index 7bf61dc58..172fdfb9a 100644 --- a/libxfs/xfs_format.h +++ b/libxfs/xfs_format.h @@ -459,7 +459,8 @@ xfs_sb_has_compat_feature( #define XFS_SB_FEAT_RO_COMPAT_REFLINK (1 << 2) /* reflinked files */ #define XFS_SB_FEAT_RO_COMPAT_ALL \ (XFS_SB_FEAT_RO_COMPAT_FINOBT | \ - XFS_SB_FEAT_RO_COMPAT_RMAPBT) + XFS_SB_FEAT_RO_COMPAT_RMAPBT | \ + XFS_SB_FEAT_RO_COMPAT_REFLINK) #define XFS_SB_FEAT_RO_COMPAT_UNKNOWN ~XFS_SB_FEAT_RO_COMPAT_ALL static inline bool xfs_sb_has_ro_compat_feature(