Home
last modified time | relevance | path

Searched refs:diskSize (Results 1 – 7 of 7) sorted by relevance

/external/gptfdisk/
Dmbr.cc62 if (diskSize < UINT32_MAX) { // If the disk is under 2TiB in MakeProtectiveMBR()
63 partitions[0].SetLocation(UINT32_C(1), (uint32_t) diskSize - UINT32_C(1)); in MakeProtectiveMBR()
91 if (after > diskSize) { in OptimizeEESize()
92 if (diskSize < UINT32_MAX) { // If the disk is under 2TiB in OptimizeEESize()
93 partitions[i].SetLengthLBA((uint32_t) diskSize - partitions[i].GetStartLBA()); in OptimizeEESize()
Dgpt.cc67 diskSize = 0; in GPTData()
91 diskSize = 0; in GPTData()
128 diskSize = orig.diskSize; in operator =()
209 if (secondHeader.currentLBA != (diskSize - UINT64_C(1))) { in Verify()
271 if (mainHeader.backupLBA >= diskSize) { in Verify()
274 << "(Disk size is " << diskSize << " sectors, needs to be " 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()
371 if (diskSize != 0) { in CheckGPTSize()
388 if (lastUsedBlock > (diskSize - 2)) { in CheckGPTSize()
[all …]
Dbasicmbr.cc35 diskSize = 0; in BasicMBRData()
48 diskSize = 0; in BasicMBRData()
81 diskSize = orig.diskSize; in operator =()
187 diskSize = myDisk->DiskSize(&err); in ReadMBRData()
460 diskSize = theDisk->DiskSize(&err); in SetDisk()
476 cout << "\nDisk size is " << diskSize << " sectors (" in DisplayMBRData()
477 << BytesToIeee(diskSize, blockSize) << ")\n"; in DisplayMBRData()
623 diskSize = myDisk->DiskSize(&err); in ReadCHSGeom()
625 partitions[0].SetGeometry(numHeads, numSecspTrack, diskSize, blockSize); in ReadCHSGeom()
887 if ((partitions[i].GetStartLBA() > diskSize) || (partitions[i].GetLastLBA() > diskSize)) { in DoTheyFit()
[all …]
Dmbrpart.cc33 uint64_t MBRPart::diskSize = 0; member in MBRPart
54 diskSize = 0; in MBRPart()
127 diskSize = ds; in SetGeometry()
193 ((lengthLBA == diskSize - 1) || (lengthLBA == UINT32_MAX))) { in SetLocation()
Dbasicmbr.h54 uint64_t diskSize; // size in blocks variable
88 void SetDiskSize(uint64_t ds) {diskSize = ds;} in SetDiskSize()
Dmbrpart.h67 static uint64_t diskSize; variable
Dgptcurses.cc742 size << "Size: " << diskSize << ", " << BytesToIeee(diskSize, blockSize); in DrawMenu()