• Home
  • Raw
  • Download

Lines Matching refs:partitions

36    partitions = NULL;  in BSDData()
40 delete[] partitions; in ~BSDData()
136 partitions = new struct BSDRecord[numParts * sizeof(struct BSDRecord)]; in ReadBSDData()
137 if (partitions == NULL) { in ReadBSDData()
145 partitions[i].lengthLBA = tempRecords[i].lengthLBA; in ReadBSDData()
146 partitions[i].firstLBA = tempRecords[i].firstLBA; in ReadBSDData()
147 partitions[i].fsType = tempRecords[i].fsType; in ReadBSDData()
149 ReverseBytes(&partitions[i].lengthLBA, 4); in ReadBSDData()
150 ReverseBytes(&partitions[i].firstLBA, 4); in ReadBSDData()
157 if ((partitions[i].firstLBA == 0) && (partitions[i].lengthLBA > 0) in ReadBSDData()
158 && (partitions[i].lengthLBA < labelLastLBA)) in ReadBSDData()
166 partitions[i].firstLBA += (uint32_t) startSector; in ReadBSDData()
192 cout << partitions[i].firstLBA << "\t"; in DisplayBSDData()
194 cout << partitions[i].lengthLBA << " \t0x"; in DisplayBSDData()
198 cout << hex << (int) partitions[i].fsType << "\n" << dec; in DisplayBSDData()
234 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetType()
235 retval = partitions[i].fsType; in GetType()
244 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetFirstSector()
245 retval = (uint64_t) partitions[i].firstLBA; in GetFirstSector()
254 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetLength()
255 retval = (uint64_t) partitions[i].lengthLBA; in GetLength()
273 sectorOne = (uint64_t) partitions[i].firstLBA; in AsGPT()
274 sectorEnd = sectorOne + (uint64_t) partitions[i].lengthLBA; in AsGPT()