Home | History | Annotate | Download | only in gptfdisk

Lines Matching refs:partitions

38    partitions = NULL;
42 delete[] partitions;
138 partitions = new struct BSDRecord[numParts * sizeof(struct BSDRecord)];
139 if (partitions == NULL) {
147 partitions[i].lengthLBA = tempRecords[i].lengthLBA;
148 partitions[i].firstLBA = tempRecords[i].firstLBA;
149 partitions[i].fsType = tempRecords[i].fsType;
151 ReverseBytes(&partitions[i].lengthLBA, 4);
152 ReverseBytes(&partitions[i].firstLBA, 4);
159 if ((partitions[i].firstLBA == 0) && (partitions[i].lengthLBA > 0)
160 && (partitions[i].lengthLBA < labelLastLBA))
168 partitions[i].firstLBA += (uint32_t) startSector;
189 cout << "BSD partitions:\n";
194 cout << partitions[i].firstLBA << "\t";
196 cout << partitions[i].lengthLBA << " \t0x";
200 cout << hex << (int) partitions[i].fsType << "\n" << dec;
236 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0))
237 retval = partitions[i].fsType;
246 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0))
247 retval = (uint64_t) partitions[i].firstLBA;
256 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0))
257 retval = (uint64_t) partitions[i].lengthLBA;
262 // Returns the number of partitions defined in the current table
275 sectorOne = (uint64_t) partitions[i].firstLBA;
276 sectorEnd = sectorOne + (uint64_t) partitions[i].lengthLBA;
278 // Note on above: BSD partitions sometimes have a length of 0 and a start