Home | History | Annotate | Download | only in gptfdisk

Lines Matching defs:partNum

248 // partNum = number of first partition in extended partition (normally 4).
249 int BasicMBRData::ReadLogicalParts(uint64_t extendedStart, int partNum) {
258 while (another && (partNum < MAX_MBR_PARTS) && (partNum >= 0) && (allOK > 0)) {
263 partNum -= 1;
266 EbrLocations[partNum] = offset;
295 if ((partNum >= 0) && (partNum < MAX_MBR_PARTS) && (allOK > 0)) {
305 partitions[partNum] = ebr.partitions[0];
307 partitions[partNum].SetStartLBA(ebr.partitions[0].firstLBA + offset);
308 partitions[partNum].SetInclusion(LOGICAL);
311 if ((ebr.partitions[1].firstLBA != UINT32_C(0)) && (partNum < (MAX_MBR_PARTS - 1))) {
313 partNum++;
320 return (partNum * allOK);
344 int i, j, partNum, next, allOK = 1, moreLogicals = 0;
377 partNum = FindNextInUse(4);
380 while (allOK && moreLogicals && (partNum < MAX_MBR_PARTS) && (partNum >= 0)) {
381 partitions[partNum].StoreInStruct(&tempMBR.partitions[0]);
384 next = FindNextInUse(partNum + 1);
401 partNum = next;
1122 void BasicMBRData::RecomputeCHS(int partNum) {
1123 partitions[partNum].RecomputeCHS();