public MBRPartition(IBMPartitionInformation info, MBR mbr) { Mbr = mbr; Start = info.StartLBA; Length = info.LengthLBA; Identifier = info.PartitionType; blockDev = mbr.blockdevice; }
public static void Initialise() { for (int i = 0; i < Cosmos.Hardware2.Device.Devices.Count; i++) { Device d = Cosmos.Hardware2.Device.Devices[i]; if (d is Disk) { MBR mbr = new MBR(d as Disk); if (mbr.IsValid()) Cosmos.Hardware2.Device.Devices.Add(mbr); } } }
public static void Initialise() { for (int i = 0; i < Cosmos.Hardware2.Device.Devices.Count; i++) { Device d = Cosmos.Hardware2.Device.Devices[i]; if (d is Disk) { MBR mbr = new MBR(d as Disk); if (mbr.IsValid()) { Cosmos.Hardware2.Device.Devices.Add(mbr); } } } }
public IBMPartitionInformation(MBR mbr, int index) { this.mbr = mbr; this.offset = 446 + 16 * index; }
public IBMPartitionInformation(MBR mbr, int index) { this.mbr=mbr; this.offset=446+16*index; }