• Home
  • Raw
  • Download

Lines Matching refs:partitions

38    partitions = NULL;  in BSDData()
42 delete[] partitions; in ~BSDData()
138 partitions = new struct BSDRecord[numParts * sizeof(struct BSDRecord)]; in ReadBSDData()
139 if (partitions == NULL) { in ReadBSDData()
147 partitions[i].lengthLBA = tempRecords[i].lengthLBA; in ReadBSDData()
148 partitions[i].firstLBA = tempRecords[i].firstLBA; in ReadBSDData()
149 partitions[i].fsType = tempRecords[i].fsType; in ReadBSDData()
151 ReverseBytes(&partitions[i].lengthLBA, 4); in ReadBSDData()
152 ReverseBytes(&partitions[i].firstLBA, 4); in ReadBSDData()
159 if ((partitions[i].firstLBA == 0) && (partitions[i].lengthLBA > 0) in ReadBSDData()
160 && (partitions[i].lengthLBA < labelLastLBA)) in ReadBSDData()
168 partitions[i].firstLBA += (uint32_t) startSector; in ReadBSDData()
194 cout << partitions[i].firstLBA << "\t"; in DisplayBSDData()
196 cout << partitions[i].lengthLBA << " \t0x"; in DisplayBSDData()
200 cout << hex << (int) partitions[i].fsType << "\n" << dec; in DisplayBSDData()
236 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetType()
237 retval = partitions[i].fsType; in GetType()
246 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetFirstSector()
247 retval = (uint64_t) partitions[i].firstLBA; in GetFirstSector()
256 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetLength()
257 retval = (uint64_t) partitions[i].lengthLBA; in GetLength()
275 sectorOne = (uint64_t) partitions[i].firstLBA; in AsGPT()
276 sectorEnd = sectorOne + (uint64_t) partitions[i].lengthLBA; in AsGPT()