Example #1
0
File: MBR.cs Project: zer09/Cosmos
 public MBRPartition(IBMPartitionInformation info, MBR mbr)
 {
     Mbr        = mbr;
     Start      = info.StartLBA;
     Length     = info.LengthLBA;
     Identifier = info.PartitionType;
     blockDev   = mbr.blockdevice;
 }
Example #2
0
 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);
         }
     }
 }
Example #3
0
File: MBR.cs Project: zer09/Cosmos
 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);
             }
         }
     }
 }
Example #4
0
File: MBR.cs Project: zer09/Cosmos
 public IBMPartitionInformation(MBR mbr, int index)
 {
     this.mbr    = mbr;
     this.offset = 446 + 16 * index;
 }
Example #5
0
 public MBRPartition(IBMPartitionInformation info, MBR mbr)
 {
     Mbr = mbr;
     Start = info.StartLBA;
     Length = info.LengthLBA;
     Identifier = info.PartitionType;
     blockDev = mbr.blockdevice;
 }
Example #6
0
 public IBMPartitionInformation(MBR mbr, int index)
 {
     this.mbr=mbr;
     this.offset=446+16*index;
 }