Return the read error instead of EDOM when a disk read fails #166
Reference in New Issue
Block a user
No description provided.
Delete Branch "koolkhel/vitastor:read-error-skip-csum"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
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.
Tested: new
test_read_error_is_not_edomin test_blockstore_v1 (csum_block_size 16k and 4k) and test_blockstore: it fails reads from the data area with EIO and expects EIO back. Both fail without the fix (EDOM) and pass with it; the rest of both suites pass.Contributor Name
Yury Luneff (MIND Software LLC, https://mindsw.io)
CLA