mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Corrected partition arithmetics.
This commit is contained in:
@@ -75,14 +75,18 @@ namespace DiscImageChef.PartPlugins
|
||||
{
|
||||
Partition part = new Partition
|
||||
{
|
||||
Start = entry.p_boffset,
|
||||
Offset = entry.p_boffset,
|
||||
Start = (entry.p_boffset / imagePlugin.GetSectorSize()) + sectorOffset,
|
||||
Offset = entry.p_boffset + (sectorOffset * imagePlugin.GetSectorSize()),
|
||||
Size = entry.p_bsize,
|
||||
Length = entry.p_bsize,
|
||||
Length = (entry.p_bsize / imagePlugin.GetSectorSize()),
|
||||
Name = entry.p_stor_uuid.ToString(),
|
||||
Sequence = counter,
|
||||
Scheme = Name
|
||||
};
|
||||
|
||||
if((entry.p_bsize % imagePlugin.GetSectorSize()) > 0)
|
||||
part.Length++;
|
||||
|
||||
if((BSD.fsType)entry.p_fstype == BSD.fsType.Other)
|
||||
part.Type = entry.p_type_uuid.ToString();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user