Beispiel #1
0
 public HBA(HBA oldH)
 {
     Count = 0;
     hdd   = new List <disk>();
     this.hdd.InsertRange(0, oldH.hdd);
     Count += oldH.Count;
 }
Beispiel #2
0
 public raid0(disk dType)
 {
     array = new HBA();
     for (int i = 0; i < minHDD; i++)
     {
         array.addDisk(dType);
         arrayCapacity += dType.getSize();
     }
 }
Beispiel #3
0
 public raid5(disk dType)
 {
     array = new HBA();
     for (int i = 0; i < minHDD; i++)
     {
         addDisk(dType);
         arrayCapacity += dType.getSize();
     }
     arrayCapacity = (array.Count - 1) * array.getDisk(0).getSize();
 }
Beispiel #4
0
 public raid0()
 {
     array         = new HBA();
     arrayCapacity = 0;
 }