mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add raw DVD reading with HL-DT-ST command (#823)
This commit is contained in:
committed by
GitHub
parent
a2c6b8961a
commit
1153a270a9
@@ -266,6 +266,13 @@ partial class Dump
|
||||
pass));
|
||||
}
|
||||
|
||||
if(scsiReader.HldtstReadRaw)
|
||||
// The HL-DT-ST buffer is stored and read in 96-sector chunks. If we start to read at an LBA which is
|
||||
// not modulo 96, the data will not be correctly fetched. Therefore, we begin every recovery read with
|
||||
// filling the buffer at a known offset.
|
||||
// TODO: This is very ugly and there probably exist a more elegant way to solve this issue.
|
||||
scsiReader.ReadBlock(out _, badSector - (badSector % 96) + 1, out _, out _, out _);
|
||||
|
||||
sense = scsiReader.ReadBlock(out buffer, badSector, out double cmdDuration, out recoveredError,
|
||||
out blankCheck);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user