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" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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;
}