Lines Matching refs:backupLBA
218 if (mainHeader.currentLBA != secondHeader.backupLBA) { in Verify()
222 << secondHeader.backupLBA << ").\n"; in Verify()
224 if (mainHeader.backupLBA != secondHeader.currentLBA) { in Verify()
226 cout << "\nProblem: main GPT header's backup LBA pointer (" << mainHeader.backupLBA in Verify()
271 if (mainHeader.backupLBA >= diskSize) { in Verify()
275 << mainHeader.backupLBA + UINT64_C(1) << " sectors.)\n" in Verify()
279 … if ((mainHeader.lastUsableLBA >= diskSize) || (mainHeader.lastUsableLBA > mainHeader.backupLBA)) { in Verify()
283 << mainHeader.backupLBA << " and disk size is " << diskSize << " sectors.\n" in Verify()
550 mainHeader.currentLBA = secondHeader.backupLBA; in RebuildMainHeader()
551 mainHeader.backupLBA = secondHeader.currentLBA; in RebuildMainHeader()
571 secondHeader.currentLBA = mainHeader.backupLBA; in RebuildSecondHeader()
572 secondHeader.backupLBA = mainHeader.currentLBA; in RebuildSecondHeader()
807 if (mainCrcOk && (mainHeader.backupLBA < diskSize)) { in ForceLoadGPTData()
808 allOK = LoadHeader(&secondHeader, myDisk, mainHeader.backupLBA, &secondCrcOk) && allOK; in ForceLoadGPTData()
811 if (mainCrcOk && (mainHeader.backupLBA >= diskSize)) in ForceLoadGPTData()
1041 if (mainHeader.backupLBA >= diskSize) { in SaveGPTData()
1055 if (mainHeader.backupLBA < (diskSize - UINT64_C(1))) { in SaveGPTData()
1070 … if ((mainHeader.lastUsableLBA >= diskSize) || (mainHeader.lastUsableLBA > mainHeader.backupLBA)) { in SaveGPTData()
1126 allOK = allOK && SaveHeader(&secondHeader, myDisk, mainHeader.backupLBA); in SaveGPTData()
1859 mainHeader.backupLBA = diskSize - UINT64_C(1); in ClearGPTData()
1888 mainHeader.backupLBA = secondHeader.currentLBA = diskSize - UINT64_C(1); in MoveSecondHeaderToEnd()
2318 ReverseBytes(&header->backupLBA, 8); in ReverseHeaderBytes()