From: Darrick J. Wong Date: Wed, 24 Jun 2026 18:14:46 +0000 (-0700) Subject: xfs_scrub: handle missing media verify ioctl failure return codes X-Git-Tag: v7.1.0~37 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=64344c43430a74f8691b4e12817b57719e89b984;p=xfsprogs-dev.git xfs_scrub: handle missing media verify ioctl failure return codes Back when we reworked the read-verify code to use the kernel ioctl to perform media scans, we forgot to teach read_verify_one callers to handle the new error codes. Codex noticed this discrepancy, so let's fix that. Cc: linux-xfs@vger.kernel.org # v7.0.0 Fixes: 02760878dd86b9 ("xfs_scrub: use the verify media ioctl during phase 6 if possible") Signed-off-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig --- diff --git a/scrub/read_verify.c b/scrub/read_verify.c index 01e96f5b..efdf6d54 100644 --- a/scrub/read_verify.c +++ b/scrub/read_verify.c @@ -383,7 +383,13 @@ read_verify( read_error = errno; /* Runtime error, bail out... */ - if (read_error != EIO && read_error != EILSEQ) { + switch (read_error) { + case EIO: + case EILSEQ: + case EREMOTEIO: + case ENODATA: + break; + default: rvp->runtime_error = read_error; return; }