]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: retry scrub (and repair) of items that are ok except for XFAIL xfsprogs-5.15-fixes_2022-03-29
authorDarrick J. Wong <djwong@kernel.org>
Mon, 14 Mar 2022 21:54:54 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 30 Mar 2022 03:21:50 +0000 (20:21 -0700)
commit3b6f84e42f3f69965a0aca76fce3b627019fcecc
treef37a6ea00df23c938a6bba0f977035bd847ab260
parent08bf2ff06d89cf348b05ff8b95c474b2c48554ac
xfs_scrub: retry scrub (and repair) of items that are ok except for XFAIL

Sometimes a metadata object will pass all of the obvious scrubber
checks, but we won't be able to cross-reference the object's records
with other metadata objects (e.g. a file data fork and a free space
btree both claim ownership of an extent).  When this happens during the
checking phase, we should queue the object for a repair, which means
that phase 4 will keep re-evaluating the object as repairs proceed.
Eventually, the hope is that we'll fix the filesystem and everything
will scrub cleanly; if not, we recommend running xfs_repair as a second
attempt to fix the inconsistency.

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