xfs: enable the needsrepair feature
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 24 Nov 2020 19:45:55 +0000 (11:45 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Dec 2020 17:49:38 +0000 (09:49 -0800)
Make it so that libxfs recognizes the needsrepair feature.  Note that
the kernel will still refuse to mount these.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_format.h

index 5d8ba609ac0bc5cb582f32101d61e51f7d1b71e5..f64eed3ccfed8812e72d7f54faf838afef17b477 100644 (file)
@@ -473,7 +473,8 @@ xfs_sb_has_ro_compat_feature(
                (XFS_SB_FEAT_INCOMPAT_FTYPE|    \
                 XFS_SB_FEAT_INCOMPAT_SPINODES| \
                 XFS_SB_FEAT_INCOMPAT_META_UUID| \
-                XFS_SB_FEAT_INCOMPAT_BIGTIME)
+                XFS_SB_FEAT_INCOMPAT_BIGTIME| \
+                XFS_SB_FEAT_INCOMPAT_NEEDSREPAIR)
 
 #define XFS_SB_FEAT_INCOMPAT_UNKNOWN   ~XFS_SB_FEAT_INCOMPAT_ALL
 static inline bool