Lines Matching refs:protectiveMBR
100 protectiveMBR = orig.protectiveMBR;
171 protectiveMBR = orig.protectiveMBR;
394 if (protectiveMBR.IsEEActive()) {
405 if (!protectiveMBR.DoTheyFit()) {
697 if ((protectiveMBR.GetType(i) != 0xEE) && (protectiveMBR.GetType(i) != 0x00)) {
700 mbrFirst = (uint64_t) protectiveMBR.GetFirstSector(i);
701 mbrLast = mbrFirst + (uint64_t) protectiveMBR.GetLength(i) - UINT64_C(1);
715 cout << hex << (int) protectiveMBR.GetType(i) << ",\n"
792 protectiveMBR.SetDisk(&myDisk);
793 protectiveMBR.SetDiskSize(diskSize);
794 protectiveMBR.SetBlockSize(blockSize);
806 protectiveMBR.ReadMBRData(&myDisk);
814 if ((state == gpt_valid) && !protectiveMBR.DoTheyFit() && (protectiveMBR.GetValidity() == gpt)) {
818 protectiveMBR.MakeProtectiveMBR();
823 protectiveMBR.ShowState();
885 protectiveMBR.MakeProtectiveMBR(1); // clear boot area (option 1)
889 mbrState = protectiveMBR.GetValidity();
891 protectiveMBR.MakeProtectiveMBR();
895 protectiveMBR.MakeProtectiveMBR();
1249 if (!protectiveMBR.DoTheyFit()) {
1292 allOK = allOK && protectiveMBR.WriteMBRData(&myDisk);
1342 protectiveMBR.WriteMBRData(&backupFile);
1343 protectiveMBR.SetDisk(&myDisk);
1422 protectiveMBR.ReadMBRData(&backupFile, 0); // 0 = don't check block size
1423 protectiveMBR.SetDisk(&myDisk);
1468 protectiveMBR.MakeProtectiveMBR();
1479 return protectiveMBR.WriteMBRData(&myDisk);
1640 mbrState = protectiveMBR.GetValidity();
1720 origType = protectiveMBR.GetType(i);
1725 partitions[i] = protectiveMBR.AsGPT(i);
1729 protectiveMBR.MakeProtectiveMBR();
1823 protectiveMBR.MakePart(mbrPart, (uint32_t) partitions[gptPart].GetFirstLBA(),
1965 protectiveMBR.DeleteByLocation(startSector, length);
2028 // Note that this function does NOT clear the protectiveMBR data
2089 if (protectiveMBR.GetValidity() == hybrid) {
2090 protectiveMBR.OptimizeEESize();
2093 if (protectiveMBR.GetValidity() == gpt)
2166 protectiveMBR.RecomputeCHS(i);