]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs_scrub: log when a repair was unnecessary
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:03 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:06 +0000 (17:01 -0700)
If the kernel tells us that a filesystem object didn't need repairs, we
should log that with a message specific to that outcome.

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

index 54bd09575c0f304b2813775ea867839e42332578..50f168d24fe732c718af0d2ebb0c484a4e951465 100644 (file)
@@ -167,6 +167,10 @@ _("Repair unsuccessful; offline repair required."));
  _("Seems correct but cross-referencing failed; will keep checking."));
                        return CHECK_RETRY;
                }
+       } else if (meta.sm_flags & XFS_SCRUB_OFLAG_NO_REPAIR_NEEDED) {
+               if (verbose)
+                       str_info(ctx, descr_render(&dsc),
+                                       _("No modification needed."));
        } else {
                /* Clean operation, no corruption detected. */
                if (is_corrupt(&oldm))