Home | History | Annotate | Download | only in gptfdisk

Lines Matching refs:protectiveMBR

129    protectiveMBR = orig.protectiveMBR;
305 if (protectiveMBR.IsEEActive()) {
316 if (!protectiveMBR.DoTheyFit()) {
598 if ((protectiveMBR.GetType(i) != 0xEE) && (protectiveMBR.GetType(i) != 0x00)) {
601 mbrFirst = (uint64_t) protectiveMBR.GetFirstSector(i);
602 mbrLast = mbrFirst + (uint64_t) protectiveMBR.GetLength(i) - UINT64_C(1);
616 cout << hex << (int) protectiveMBR.GetType(i) << ",\n"
692 protectiveMBR.SetDisk(&myDisk);
693 protectiveMBR.SetDiskSize(diskSize);
694 protectiveMBR.SetBlockSize(blockSize);
706 protectiveMBR.ReadMBRData(&myDisk);
714 if ((state == gpt_valid) && !protectiveMBR.DoTheyFit() && (protectiveMBR.GetValidity() == gpt)) {
718 protectiveMBR.MakeProtectiveMBR();
723 protectiveMBR.ShowState();
777 protectiveMBR.MakeProtectiveMBR(1); // clear boot area (option 1)
781 mbrState = protectiveMBR.GetValidity();
783 protectiveMBR.MakeProtectiveMBR();
787 protectiveMBR.MakeProtectiveMBR();
1097 if (!protectiveMBR.DoTheyFit()) {
1140 allOK = allOK && protectiveMBR.WriteMBRData(&myDisk);
1190 protectiveMBR.WriteMBRData(&backupFile);
1191 protectiveMBR.SetDisk(&myDisk);
1270 protectiveMBR.ReadMBRData(&backupFile, 0); // 0 = don't check block size
1271 protectiveMBR.SetDisk(&myDisk);
1316 protectiveMBR.MakeProtectiveMBR();
1327 return protectiveMBR.WriteMBRData(&myDisk);
1483 mbrState = protectiveMBR.GetValidity();
1563 origType = protectiveMBR.GetType(i);
1568 partitions[i] = protectiveMBR.AsGPT(i);
1572 protectiveMBR.MakeProtectiveMBR();
1666 protectiveMBR.MakePart(mbrPart, (uint32_t) partitions[gptPart].GetFirstLBA(),
1774 protectiveMBR.DeleteByLocation(startSector, length);
1837 // Note that this function does NOT clear the protectiveMBR data
1897 if (protectiveMBR.GetValidity() == hybrid) {
1898 protectiveMBR.OptimizeEESize();
1901 if (protectiveMBR.GetValidity() == gpt)
1974 protectiveMBR.RecomputeCHS(i);