Add field to propagate partition scheme on each partition.

This commit is contained in:
2017-07-23 22:54:36 +01:00
parent 332c2901fd
commit 4b9d012346
18 changed files with 488 additions and 376 deletions

View File

@@ -69,13 +69,16 @@ namespace DiscImageChef.PartPlugins
foreach(SGIPartition entry in disklabel.partitions)
{
Partition part = new Partition();
part.Start = entry.first_block;
part.Offset = (entry.first_block * 512);
part.Size = entry.num_blocks;
part.Length = (entry.num_blocks * 512);
part.Type = string.Format("{0}", entry.type);
part.Sequence = counter;
Partition part = new Partition()
{
Start = entry.first_block,
Offset = (entry.first_block * 512),
Size = entry.num_blocks,
Length = (entry.num_blocks * 512),
Type = string.Format("{0}", entry.type),
Sequence = counter,
Scheme = Name
};
if(part.Size > 0)
{
partitions.Add(part);