From: Darrick J. Wong Date: Thu, 4 Jun 2026 06:06:56 +0000 (-0700) Subject: xfs_scrub: don't report media errors in specially-owned areas as file data X-Git-Tag: v7.1.0~57 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5db0a8b13358dff36728e005f28557efd5f08745;p=xfsprogs-dev.git xfs_scrub: don't report media errors in specially-owned areas as file data If a media error occurs for some disk space that has a "special" owner, we mustn't try to walk parent pointers because special owners are not files. If it's an extent map, we shouldn't accidentally fall into reporting that as file data loss. This was, like the rest, found by Codex. Signed-off-by: "Darrick J. Wong" Reviewed-by: Andrey Albershteyn --- diff --git a/scrub/phase6.c b/scrub/phase6.c index c273420d..cd9bb26b 100644 --- a/scrub/phase6.c +++ b/scrub/phase6.c @@ -436,6 +436,8 @@ report_ioerr_fsmap( } else { str_corrupt(ctx, buf, _("media error in %s."), type); } + + return 0; } if (can_use_pptrs(ctx)) { @@ -454,6 +456,8 @@ report_ioerr_fsmap( attr ? _("extended attribute") : _("file data")); str_corrupt(ctx, buf, _("media error in extent map")); + + return 0; } /*