• Home
  • Raw
  • Download

Lines Matching refs:myDisk

146    myDisk.OpenForRead(orig.myDisk.GetName());  in operator =()
687 if (allOK && myDisk.OpenForRead(deviceFilename)) { in SetDisk()
689 diskSize = myDisk.DiskSize(&err); in SetDisk()
690 blockSize = (uint32_t) myDisk.GetBlockSize(); in SetDisk()
692 protectiveMBR.SetDisk(&myDisk); in SetDisk()
706 protectiveMBR.ReadMBRData(&myDisk); in PartitionScan()
707 bsdDisklabel.ReadBSDData(&myDisk, 0, diskSize - 1); in PartitionScan()
746 if (myDisk.OpenForRead(deviceFilename)) { in LoadPartitions()
747 err = myDisk.OpenForWrite(deviceFilename); in LoadPartitions()
758 myDisk.Close(); // Close and re-open read-only in case of bugs in LoadPartitions()
761 if (allOK && myDisk.OpenForRead(deviceFilename)) { in LoadPartitions()
763 diskSize = myDisk.DiskSize(&err); in LoadPartitions()
764 blockSize = (uint32_t) myDisk.GetBlockSize(); in LoadPartitions()
774 bsdDisklabel.ReadBSDData(&myDisk, 0, diskSize - 1); in LoadPartitions()
797 myDisk.Close(); in LoadPartitions()
810 allOK = LoadHeader(&mainHeader, myDisk, 1, &mainCrcOk); in ForceLoadGPTData()
813 allOK = LoadHeader(&secondHeader, myDisk, mainHeader.backupLBA, &secondCrcOk) && allOK; in ForceLoadGPTData()
815 allOK = LoadHeader(&secondHeader, myDisk, diskSize - UINT64_C(1), &secondCrcOk) && allOK; in ForceLoadGPTData()
906 return LoadPartitionTable(mainHeader, myDisk); in LoadMainTable()
914 return LoadPartitionTable(secondHeader, myDisk); in LoadSecondTableAsMain()
1003 if (myDisk.Seek(header->partitionEntriesLBA)) { in CheckTable()
1010 if (myDisk.Read(partsToCheck, sizeOfParts) != (int) sizeOfParts) { in CheckTable()
1116 cout << "OK; writing new GUID partition table (GPT) to " << myDisk.GetName() << ".\n"; in SaveGPTData()
1124 if (myDisk.OpenForWrite()) { in SaveGPTData()
1126 allOK = SavePartitionTable(myDisk, secondHeader.partitionEntriesLBA); in SaveGPTData()
1134 allOK = allOK && SaveHeader(&secondHeader, myDisk, mainHeader.backupLBA); in SaveGPTData()
1137 allOK = allOK && SavePartitionTable(myDisk, mainHeader.partitionEntriesLBA); in SaveGPTData()
1140 allOK = allOK && SaveHeader(&mainHeader, myDisk, 1); in SaveGPTData()
1143 allOK = allOK && protectiveMBR.WriteMBRData(&myDisk); in SaveGPTData()
1154 myDisk.DiskSync(); in SaveGPTData()
1163 myDisk.Close(); in SaveGPTData()
1165 cerr << "Unable to open device '" << myDisk.GetName() << "' for writing! Errno is " in SaveGPTData()
1194 protectiveMBR.SetDisk(&myDisk); in SaveGPTBackup()
1274 protectiveMBR.SetDisk(&myDisk); in LoadGPTBackup()
1330 return protectiveMBR.WriteMBRData(&myDisk); in SaveMBR()
1344 if (myDisk.OpenForWrite()) { in DestroyGPT()
1345 if (!myDisk.Seek(mainHeader.currentLBA)) in DestroyGPT()
1347 if (myDisk.Write(blankSector, 512) != 512) { // blank it out in DestroyGPT()
1351 if (!myDisk.Seek(mainHeader.partitionEntriesLBA)) in DestroyGPT()
1361 sum = myDisk.Write(emptyTable, tableSize); in DestroyGPT()
1367 if (!myDisk.Seek(secondHeader.partitionEntriesLBA)) in DestroyGPT()
1370 sum = myDisk.Write(emptyTable, tableSize); in DestroyGPT()
1377 if (!myDisk.Seek(secondHeader.currentLBA)) in DestroyGPT()
1380 if (myDisk.Write(blankSector, 512) != 512) { // blank it out in DestroyGPT()
1386 myDisk.DiskSync(); in DestroyGPT()
1388 myDisk.Close(); in DestroyGPT()
1406 allOK = myDisk.OpenForWrite() && myDisk.Seek(0) && (myDisk.Write(blankSector, 512) == 512); in DestroyMBR()
1601 goOn = disklabel.ReadBSDData(&myDisk, partitions[partNum].GetFirstLBA(), in XFormDisklabel()