]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: retry scrub (and repair) of items that are ok except for XFAIL
authorDarrick J. Wong <djwong@kernel.org>
Wed, 6 Apr 2022 20:48:40 +0000 (16:48 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 6 Apr 2022 20:48:40 +0000 (16:48 -0400)
commit882082d571d0e376dffcbc9649ace990a14cc622
treef37a6ea00df23c938a6bba0f977035bd847ab260
parentd986944690cb7f2d16a62e71a4b5fc6a3aa7f964
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>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/scrub.c