]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: recognize the reflink feature bit
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:46:51 +0000 (12:46 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:46:51 +0000 (12:46 +1100)
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 <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_format.h

index 7bf61dc58133c649170eebce04d354fc4b43eee4..172fdfb9a9f32cc446f696102be4c5091139e1b9 100644 (file)
@@ -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(