mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Read tape blocks DDT when resuming an existing dicformat.
This commit is contained in:
@@ -407,7 +407,7 @@ namespace DiscImageChef.DiscImages
|
|||||||
|
|
||||||
if(ddtHeader.identifier != BlockType.DeDuplicationTable) break;
|
if(ddtHeader.identifier != BlockType.DeDuplicationTable) break;
|
||||||
|
|
||||||
if(ddtHeader.entries != imageInfo.Sectors)
|
if(ddtHeader.entries != imageInfo.Sectors && !isTape)
|
||||||
{
|
{
|
||||||
ErrorMessage =
|
ErrorMessage =
|
||||||
$"Trying to write a media with {imageInfo.Sectors} sectors to an image with {ddtHeader.entries} sectors, not continuing...";
|
$"Trying to write a media with {imageInfo.Sectors} sectors to an image with {ddtHeader.entries} sectors, not continuing...";
|
||||||
@@ -449,6 +449,15 @@ namespace DiscImageChef.DiscImages
|
|||||||
ImageNotSupportedException($"Found unsupported compression algorithm {(ushort)ddtHeader.compression}");
|
ImageNotSupportedException($"Found unsupported compression algorithm {(ushort)ddtHeader.compression}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isTape)
|
||||||
|
{
|
||||||
|
tapeDdt = new Dictionary<ulong, ulong>();
|
||||||
|
for(long i = 0; i < userDataDdt.LongLength; i++)
|
||||||
|
tapeDdt.Add((ulong)i, userDataDdt[i]);
|
||||||
|
|
||||||
|
userDataDdt = null;
|
||||||
|
}
|
||||||
|
|
||||||
foundUserDataDdt = true;
|
foundUserDataDdt = true;
|
||||||
}
|
}
|
||||||
else if(entry.dataType == DataType.CdSectorPrefixCorrected ||
|
else if(entry.dataType == DataType.CdSectorPrefixCorrected ||
|
||||||
|
|||||||
Reference in New Issue
Block a user