Lines Matching refs:header2
241 GptHeader *header2 = (GptHeader *)(gpt->secondary_header); in GptSanityCheck() local
259 if (0 == CheckHeader(header2, 1, gpt->streaming_drive_sectors, in GptSanityCheck()
263 goodhdr = header2; in GptSanityCheck()
286 if (0 == CheckEntries(entries1, header2)) in GptSanityCheck()
288 if (0 == CheckEntries(entries2, header2)) in GptSanityCheck()
297 goodhdr = header2; in GptSanityCheck()
309 0 != HeaderFieldsSame(header1, header2)) in GptSanityCheck()
318 GptHeader *header2 = (GptHeader *)(gpt->secondary_header); in GptRepair() local
330 Memcpy(header2, header1, sizeof(GptHeader)); in GptRepair()
331 header2->my_lba = gpt->gpt_drive_sectors - GPT_HEADER_SECTORS; in GptRepair()
332 header2->alternate_lba = GPT_PMBR_SECTORS; /* Second sector. */ in GptRepair()
333 header2->entries_lba = header2->my_lba - CalculateEntriesSectors(header1); in GptRepair()
334 header2->header_crc32 = HeaderCrc(header2); in GptRepair()
339 Memcpy(header1, header2, sizeof(GptHeader)); in GptRepair()