]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs_db: disable xfs_check when metadir is enabled
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:21:50 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:13:17 +0000 (17:13 -0700)
As of July 2024, xfs_repair can detect more types of corruptions than
xfs_check does.  I don't think it makes sense to maintain the xfs_check
code anymore, so let's just turn it off for any filesystem that has
metadata directory trees.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
db/check.c

index bceaf318d75ed8a7dcaa9b5f25e45a768df197a8..0136ce17e3152879076c67d9dec8ccb4416829b6 100644 (file)
@@ -831,6 +831,12 @@ blockget_f(
                dbprefix = oldprefix;
                return 0;
        }
+
+       if (xfs_has_metadir(mp)) {
+               dbprefix = oldprefix;
+               return 0;
+       }
+
        check_rootdir();
        /*
         * Check that there are no blocks either