From 201a0825041b12dae23fac006a3c85f94efa97c3 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 29 Jul 2024 16:23:04 -0700 Subject: [PATCH] xfs_scrub: any inconsistency in metadata should trigger difficulty warnings 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 Reviewed-by: Christoph Hellwig --- scrub/repair.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scrub/repair.c b/scrub/repair.c index 33a80311..30817d26 100644 --- a/scrub/repair.c +++ b/scrub/repair.c @@ -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) { -- 2.47.3