v0.11.9: fast verify reads — 5s timeout, no recovery loop

This commit is contained in:
Matt Jackson
2026-04-20 01:01:44 +00:00
parent a693ef965b
commit 8870efa77b
5 changed files with 47 additions and 5 deletions
+6
View File
@@ -12,6 +12,12 @@ pub trait SectorReader: Send {
/// `buf` must be at least `count * 2048` bytes.
fn read_sectors(&mut self, lba: u32, count: u16, buf: &mut [u8]) -> Result<usize>;
/// Fast single-attempt read — no recovery, short timeout.
/// Default implementation calls read_sectors (ISO files don't need fast mode).
fn read_sectors_fast(&mut self, lba: u32, count: u16, buf: &mut [u8]) -> Result<usize> {
self.read_sectors(lba, count, buf)
}
/// Total capacity in sectors, if known.
fn capacity(&self) -> u32 {
0