block layer: a read or a writeback that fails is refused, not taken as blank or dropped (#187)

A disk header that cannot be read refuses the attach (BLK_EIO, with a
message naming the disk by size); it was taken as blank and offered for
a format. A data read that fails is refused, not cached as zeros. An
eviction whose writeback fails keeps the slot and refuses the new one;
the changes were lost. test_host_blocks, a device whose reads can fail:
7 of 65 failed against the old code, 65 pass (63 at 32 bits). The
test's own errors (a detached device not reopened; two devices declared
out of the later checks' scope) corrected. ident_attach_fail on amd64:
the attach refused; its two failures left are #179's. The five write
results still thrown away are reported, not changed. Gates pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
Claude
2026-11-21 00:37:33 +00:00
parent 20918f9f09
commit 63e9966abc
9 changed files with 1949 additions and 10 deletions