Home
last modified time | relevance | path

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

/third_party/gptfdisk/
Dmbr.cc61 if (diskSize < UINT32_MAX) { // If the disk is under 2TiB in MakeProtectiveMBR()
62 partitions[0].SetLocation(UINT32_C(1), (uint32_t) diskSize - UINT32_C(1)); in MakeProtectiveMBR()
90 if (after > diskSize) { in OptimizeEESize()
91 if (diskSize < UINT32_MAX) { // If the disk is under 2TiB in OptimizeEESize()
92 partitions[i].SetLengthLBA((uint32_t) diskSize - partitions[i].GetStartLBA()); in OptimizeEESize()
Dgpt.cc70 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()
[all …]
Dbasicmbr.cc37 diskSize = 0; in BasicMBRData()
57 diskSize = orig.diskSize; in BasicMBRData()
80 diskSize = 0; in BasicMBRData()
114 diskSize = orig.diskSize; in operator =()
221 diskSize = myDisk->DiskSize(&err); in ReadMBRData()
495 diskSize = theDisk->DiskSize(&err); in SetDisk()
511 cout << "\nDisk size is " << diskSize << " sectors (" in DisplayMBRData()
512 << BytesToIeee(diskSize, blockSize) << ")\n"; in DisplayMBRData()
658 diskSize = myDisk->DiskSize(&err); in ReadCHSGeom()
660 partitions[0].SetGeometry(numHeads, numSecspTrack, diskSize, blockSize); in ReadCHSGeom()
[all …]
Dmbrpart.cc35 uint64_t MBRPart::diskSize = 0; member in MBRPart
56 diskSize = 0; in MBRPart()
129 diskSize = ds; in SetGeometry()
195 ((lengthLBA == diskSize - 1) || (lengthLBA == UINT32_MAX))) { in SetLocation()
Dbasicmbr.h53 uint64_t diskSize; // size in blocks variable
88 void SetDiskSize(uint64_t ds) {diskSize = ds;} in SetDiskSize()
Dmbrpart.h66 static uint64_t diskSize; variable
Dgpt.h72 uint64_t diskSize; // size of device, in logical blocks variable
Dgptcurses.cc756 size << "Size: " << diskSize << ", " << BytesToIeee(diskSize, blockSize); in DrawMenu()