From: Darrick J. Wong Date: Thu, 21 Nov 2024 00:24:15 +0000 (-0800) Subject: xfs_db: disable xfs_check when metadir is enabled X-Git-Tag: v6.13.0~168 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d9e3a0008ef0d4cfff4b976b50d5e8a06d764ea5;p=thirdparty%2Fxfsprogs-dev.git xfs_db: disable xfs_check when metadir is enabled 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" Reviewed-by: Christoph Hellwig --- diff --git a/db/check.c b/db/check.c index fb7b6cb4..37306bd7 100644 --- a/db/check.c +++ b/db/check.c @@ -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