Home
last modified time | relevance | path

Searched refs:GetStartLBA (Results 1 – 3 of 3) sorted by relevance

/external/gptfdisk/
Dmbr.cc83 if (SectorUsedAs(partitions[i].GetStartLBA() - 1, 4) == NONE) { in OptimizeEESize()
84 partitions[i].SetStartLBA(FindFirstInFree(partitions[i].GetStartLBA() - 1)); in OptimizeEESize()
87 after = partitions[i].GetStartLBA() + partitions[i].GetLengthLBA(); in OptimizeEESize()
89 partitions[i].SetLengthLBA(FindLastInFree(after) - partitions[i].GetStartLBA() + 1); in OptimizeEESize()
93 partitions[i].SetLengthLBA((uint32_t) diskSize - partitions[i].GetStartLBA()); in OptimizeEESize()
95 partitions[i].SetLengthLBA(UINT32_MAX - partitions[i].GetStartLBA()); in OptimizeEESize()
117 if ((partitions[i].GetType() != 0xEE) && (partitions[i].GetStartLBA() == start32) in DeleteByLocation()
153 firstSector = (uint64_t) origPart->GetStartLBA(); in AsGPT()
Dbasicmbr.cc200 logicalNum = ReadLogicalParts(partitions[i].GetStartLBA(), abs(logicalNum) + 1); in ReadMBRData()
357 extFirstLBA = partitions[i].GetStartLBA(); in WriteMBRData()
383 if ((next < MAX_MBR_PARTS) && (next > 0) && (partitions[next].GetStartLBA() > 0)) { in WriteMBRData()
385 … tempMBR.partitions[1].firstLBA = (uint32_t) (partitions[next].GetStartLBA() - extFirstLBA - 1); in WriteMBRData()
641 if (partitions[i].GetStartLBA() != UINT32_C(0)) { // it exists in GetPartRange()
721 if (partitions[i].GetStartLBA() == 1) in FindOverlaps()
792 sectorBefore = SectorUsedAs(partitions[i].GetStartLBA() - 1); in UpdateCanBeLogical()
793 lStart = partitions[i].GetStartLBA(); // start of potential logical part. in UpdateCanBeLogical()
801 pStart = partitions[j].GetStartLBA(); in UpdateCanBeLogical()
822 if ((partitions[i].GetStartLBA() > (firstLogical + 1)) && in UpdateCanBeLogical()
[all …]
Dmbrpart.h95 uint64_t GetStartLBA(void) {return firstLBA;} in GetStartLBA() function