public MBRPartition(IBMPartitionInformation info, MBR mbr) { Mbr = mbr; Start = info.StartLBA; Length = info.LengthLBA; Identifier = info.PartitionType; blockDev = mbr.blockdevice; }
public MBR(Disk bd) { this.blockdevice = bd; Partition = new IBMPartitionInformation[4]; Partition[0] = new IBMPartitionInformation(this, 0); Partition[1] = new IBMPartitionInformation(this, 1); Partition[2] = new IBMPartitionInformation(this, 2); Partition[3] = new IBMPartitionInformation(this, 3); Refresh(); }