Scrub/repair should correctly handle truncation and EIO (Fixes #4510)