]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_scrub: any inconsistency in metadata should trigger difficulty warnings
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:04 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:07 +0000 (17:01 -0700)
Any inconsistency in the space metadata can be a sign that repairs will
be difficult, so set off the warning if there were cross referencing
problems too.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/repair.c

index 33a8031103c63c7c09dd76b1f665cc34b540aca8..30817d268d6bd1c04ab8643d8194a066165f80f2 100644 (file)
@@ -319,7 +319,9 @@ action_list_difficulty(
        unsigned int                    ret = 0;
 
        list_for_each_entry_safe(aitem, n, &alist->list, list) {
-               if (!(aitem->flags & XFS_SCRUB_OFLAG_CORRUPT))
+               if (!(aitem->flags & (XFS_SCRUB_OFLAG_CORRUPT |
+                                     XFS_SCRUB_OFLAG_XCORRUPT |
+                                     XFS_SCRUB_OFLAG_XFAIL)))
                        continue;
 
                switch (aitem->type) {