Lines Matching refs:diskSize
70 diskSize = 0; in GPTData()
103 diskSize = orig.diskSize; in GPTData()
134 diskSize = 0; in GPTData()
174 diskSize = orig.diskSize; in operator =()
256 if (secondHeader.currentLBA != (diskSize - UINT64_C(1))) { in Verify()
318 if (mainHeader.backupLBA >= diskSize) { in Verify()
321 << "(Disk size is " << diskSize << " sectors, needs to be " in Verify()
365 … if ((mainHeader.lastUsableLBA >= diskSize) || (mainHeader.lastUsableLBA > mainHeader.backupLBA)) { in Verify()
369 << mainHeader.backupLBA << " and disk size is " << diskSize << " sectors.\n" in Verify()
467 if (diskSize != 0) { in CheckGPTSize()
484 if (lastUsedBlock > (diskSize - 2)) { in CheckGPTSize()
755 if (partitions[i].GetLastLBA() >= diskSize) { in FindInsanePartitions()
780 diskSize = myDisk.DiskSize(&err); in SetDisk()
785 protectiveMBR.SetDiskSize(diskSize); in SetDisk()
799 bsdDisklabel.ReadBSDData(&myDisk, 0, diskSize - 1); in PartitionScan()
860 diskSize = myDisk.DiskSize(&err); in LoadPartitions()
872 bsdDisklabel.ReadBSDData(&myDisk, 0, diskSize - 1); in LoadPartitions()
897 if (diskSize <= GetTableSizeInSectors() * 2 + 3) { in LoadPartitions()
899 cout << "Disk is too small to hold GPT data (" << diskSize in LoadPartitions()
918 if (mainCrcOk && (mainHeader.backupLBA < diskSize)) { in ForceLoadGPTData()
921 allOK = LoadHeader(&secondHeader, myDisk, diskSize - UINT64_C(1), &secondCrcOk) && allOK; in ForceLoadGPTData()
922 if (mainCrcOk && (mainHeader.backupLBA >= diskSize)) in ForceLoadGPTData()
1188 if (mainHeader.backupLBA >= diskSize) { in SaveGPTData()
1202 if (mainHeader.backupLBA < (diskSize - UINT64_C(1))) { in SaveGPTData()
1217 … if ((mainHeader.lastUsableLBA >= diskSize) || (mainHeader.lastUsableLBA > mainHeader.backupLBA)) { in SaveGPTData()
1442 if (secondHeader.currentLBA != diskSize - UINT64_C(1)) { in LoadGPTBackup()
1581 cout << "Disk " << device << ": " << diskSize << " sectors, " in DisplayGPTData()
1582 << BytesToIeee(diskSize, blockSize) << "\n"; in DisplayGPTData()
1887 if (diskSize > 0) in SetGPTSize()
2031 mainHeader.backupLBA = diskSize - UINT64_C(1); in ClearGPTData()
2032 mainHeader.lastUsableLBA = diskSize - mainHeader.firstUsableLBA; in ClearGPTData()
2060 mainHeader.backupLBA = secondHeader.currentLBA = diskSize - UINT64_C(1); in MoveSecondHeaderToEnd()
2061 if (mainHeader.lastUsableLBA != diskSize - mainHeader.firstUsableLBA) { in MoveSecondHeaderToEnd()
2069 mainHeader.lastUsableLBA = secondHeader.lastUsableLBA = diskSize - mainHeader.firstUsableLBA; in MoveSecondHeaderToEnd()
2389 if (diskSize > 0) { in FindFreeBlocks()
2504 if ((align < MIN_AF_ALIGNMENT) && (diskSize >= SMALLEST_ADVANCED_FORMAT)) in ComputeAlignment()