mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use PVD's blocks and blocksize in ISO9660.
This commit is contained in:
@@ -201,6 +201,8 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
public DateTime ExpirationTime;
|
||||
public bool HasEffectiveTime;
|
||||
public DateTime EffectiveTime;
|
||||
public ushort BlockSize;
|
||||
public uint Blocks;
|
||||
}
|
||||
|
||||
static DecodedVolumeDescriptor DecodeJolietDescriptor(PrimaryVolumeDescriptor jolietvd)
|
||||
@@ -248,6 +250,9 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
decodedVD.EffectiveTime = DateHandlers.ISO9660ToDateTime(jolietvd.effective_date);
|
||||
}
|
||||
|
||||
decodedVD.Blocks = jolietvd.volume_space_size;
|
||||
decodedVD.BlockSize = jolietvd.logical_block_size;
|
||||
|
||||
return decodedVD;
|
||||
}
|
||||
|
||||
@@ -296,6 +301,9 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
decodedVD.EffectiveTime = DateHandlers.ISO9660ToDateTime(pvd.effective_date);
|
||||
}
|
||||
|
||||
decodedVD.Blocks = pvd.volume_space_size;
|
||||
decodedVD.BlockSize = pvd.logical_block_size;
|
||||
|
||||
return decodedVD;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user