Return the read error instead of EDOM when a disk read fails #166

Merged
vitalif merged 1 commits from koolkhel/vitastor:read-error-skip-csum into master 2026-11-24 03:46:48 +03:00

1 Commits

Author SHA1 Message Date
0fd3f6a21e Return the read error instead of EDOM when a disk read fails
Both stores verified the checksums of a read even when its I/O failed,
over a buffer the read never filled. The check then failed, EIO became
EDOM and the log got "Checksum mismatch" lines for data that is fine,
for example on every read from a disk that has just been removed.
Verify checksums only when the reads succeeded.
2026-11-23 21:49:48 +03:00