[CompactDisc] Do not use FUA in the first retry pass with an OmniDrive, only in the following ones.

This commit is contained in:
2026-11-01 12:03:52 +00:00
parent 0a023753e0
commit 8a25b7dcd4

View File

@@ -319,13 +319,14 @@ partial class Dump
if(_omnidrive)
{
// The first pass can use the drive's read-ahead, the next ones must really read the disc again
bool c2Sense = _dev.OmniDriveReadCdWithC2(out byte[] c2Buf,
out senseBuf,
badSectorToReRead,
sectorsToReRead,
_dev.Timeout,
out cmdDuration,
true);
pass > 1);
if(!c2Sense)
{
@@ -358,7 +359,7 @@ partial class Dump
sectorsToReRead,
_dev.Timeout,
out double plainDuration,
true);
pass > 1);
cmdDuration += plainDuration;
}