From: Darrick J. Wong Date: Mon, 29 Jul 2024 23:23:04 +0000 (-0700) Subject: xfs_scrub: any inconsistency in metadata should trigger difficulty warnings X-Git-Tag: v6.10.0~19^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=201a0825041b12dae23fac006a3c85f94efa97c3;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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) {