Clean API: read_sectors_recover(recovery: bool) replaces read_sectors_fast

This commit is contained in:
Matt Jackson
2026-04-20 01:12:59 +00:00
parent 8870efa77b
commit 43ecad2d43
3 changed files with 16 additions and 8 deletions
+6 -2
View File
@@ -670,8 +670,12 @@ impl SectorReader for Drive {
self.read(lba, count, buf)
}
fn read_sectors_fast(&mut self, lba: u32, count: u16, buf: &mut [u8]) -> Result<usize> {
self.read_fast(lba, count, buf)
fn read_sectors_recover(&mut self, lba: u32, count: u16, buf: &mut [u8], recovery: bool) -> Result<usize> {
if recovery {
self.read(lba, count, buf)
} else {
self.read_fast(lba, count, buf)
}
}
}