Lines Matching refs:GPTHeader
537 int GPTData::CheckHeaderCRC(struct GPTHeader* header, int warn) { in CheckHeaderCRC()
557 } else if ((hSize > sizeof(GPTHeader)) && warn) { in CheckHeaderCRC()
558 …eader size for CRC check is " << hSize << ", which is greater than " << sizeof(GPTHeader) << ".\n"; in CheckHeaderCRC()
565 if (hSize < sizeof(GPTHeader)) in CheckHeaderCRC()
568 memcpy(temp, header, sizeof(GPTHeader)); in CheckHeaderCRC()
591 if (mainHeader.headerSize > sizeof(GPTHeader)) in RecomputeCRCs()
1035 int GPTData::LoadHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector, int *crcOk) { in LoadHeader()
1037 GPTHeader tempHeader; in LoadHeader()
1064 int GPTData::LoadPartitionTable(const struct GPTHeader & header, DiskIO & disk, uint64_t sector) { in LoadPartitionTable()
1107 int GPTData::CheckTable(struct GPTHeader *header) { in CheckTable()
1110 GPTHeader *otherHeader; in CheckTable()
1340 int GPTData::SaveHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector) { in SaveHeader()
2479 void GPTData::ReverseHeaderBytes(struct GPTHeader* header) { in ReverseHeaderBytes()
2614 if (sizeof(struct GPTHeader) != 512) { in SizesOK()
2615 cerr << "GPTHeader is " << sizeof(GPTHeader) << " bytes, should be 512 bytes; aborting!\n"; in SizesOK()