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
+3 -3
View File
@@ -105,7 +105,7 @@ pub fn verify_title(
let batch_start = Instant::now();
let batch_ok = reader
.read_sectors_fast(lba, count, &mut buf[..bytes])
.read_sectors_recover(lba, count, &mut buf[..bytes], false)
.is_ok();
let batch_ms = batch_start.elapsed().as_millis();
@@ -144,7 +144,7 @@ pub fn verify_title(
let s1 = Instant::now();
let first_ok = reader
.read_sectors_fast(sector_lba, 1, &mut buf[sector_offset..sector_offset + 2048])
.read_sectors_recover(sector_lba, 1, &mut buf[sector_offset..sector_offset + 2048], false)
.is_ok();
let s1_ms = s1.elapsed().as_millis();
@@ -158,7 +158,7 @@ pub fn verify_title(
// Retry once more after brief pause
std::thread::sleep(std::time::Duration::from_secs(2));
if reader
.read_sectors_fast(sector_lba, 1, &mut buf[sector_offset..sector_offset + 2048])
.read_sectors_recover(sector_lba, 1, &mut buf[sector_offset..sector_offset + 2048], false)
.is_ok()
{
recovered += 1;