Searched refs:GPTHeader (Results 1 – 3 of 3) sorted by relevance
/external/gptfdisk/ |
D | gpt.h | 43 struct GPTHeader { struct 64 struct GPTHeader mainHeader; 67 struct GPTHeader secondHeader; 85 int LoadHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector, int *crcOk); 86 int LoadPartitionTable(const struct GPTHeader & header, DiskIO & disk, uint64_t sector = 0); 87 int CheckTable(struct GPTHeader *header); 88 int SaveHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector); 101 int CheckHeaderCRC(struct GPTHeader* header, int warn = 0); 196 void ReverseHeaderBytes(struct GPTHeader* header);
|
D | gpt.cc | 448 int GPTData::CheckHeaderCRC(struct GPTHeader* header, int warn) { in CheckHeaderCRC() 468 } else if ((hSize > sizeof(GPTHeader)) && warn) { in CheckHeaderCRC() 469 …eader size for CRC check is " << hSize << ", which is greater than " << sizeof(GPTHeader) << ".\n"; in CheckHeaderCRC() 476 if (hSize < sizeof(GPTHeader)) in CheckHeaderCRC() 479 memcpy(temp, header, sizeof(GPTHeader)); in CheckHeaderCRC() 502 if (mainHeader.headerSize > sizeof(GPTHeader)) in RecomputeCRCs() 917 int GPTData::LoadHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector, int *crcOk) { in LoadHeader() 919 GPTHeader tempHeader; in LoadHeader() 946 int GPTData::LoadPartitionTable(const struct GPTHeader & header, DiskIO & disk, uint64_t sector) { in LoadPartitionTable() 986 int GPTData::CheckTable(struct GPTHeader *header) { in CheckTable() [all …]
|
D | NEWS | 268 disk's sector size is larger than the GPTHeader data structure size (512
|