mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add support for negative and overflow sectors in image creation
This commit is contained in:
@@ -955,6 +955,14 @@ sealed partial class Dump
|
||||
dskType,
|
||||
_formatOptions,
|
||||
blocks,
|
||||
(uint)(outputOptical.OpticalCapabilities.HasFlag(OpticalImageCapabilities
|
||||
.CanStoreNegativeSectors)
|
||||
? 2750
|
||||
: 0),
|
||||
(uint)(outputOptical.OpticalCapabilities.HasFlag(OpticalImageCapabilities
|
||||
.CanStoreOverflowSectors)
|
||||
? 2750
|
||||
: 0),
|
||||
supportsLongSectors ? blockSize : 2048);
|
||||
|
||||
// Cannot create image
|
||||
@@ -1082,9 +1090,8 @@ sealed partial class Dump
|
||||
foreach(int sub in _resume.BadSubchannels) subchannelExtents.Add(sub);
|
||||
|
||||
if(_resume.NextBlock < blocks)
|
||||
{
|
||||
for(ulong i = _resume.NextBlock; i < blocks; i++) subchannelExtents.Add((int)i);
|
||||
}
|
||||
for(ulong i = _resume.NextBlock; i < blocks; i++)
|
||||
subchannelExtents.Add((int)i);
|
||||
}
|
||||
|
||||
if(_resume.NextBlock > 0)
|
||||
@@ -1499,9 +1506,8 @@ sealed partial class Dump
|
||||
supportsLongSectors);
|
||||
|
||||
foreach(Tuple<ulong, ulong> leadoutExtent in leadOutExtents.ToArray())
|
||||
{
|
||||
for(ulong e = leadoutExtent.Item1; e <= leadoutExtent.Item2; e++) subchannelExtents.Remove((int)e);
|
||||
}
|
||||
for(ulong e = leadoutExtent.Item1; e <= leadoutExtent.Item2; e++)
|
||||
subchannelExtents.Remove((int)e);
|
||||
|
||||
if(subchannelExtents.Count > 0 && _retryPasses > 0 && _retrySubchannel)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user