GPT_HDR_SIZE
&& le32toh(hdr.hdr_size) == GPT_HDR_SIZE) {
(void)memcpy(gptp, buf, GPT_HDR_SIZE);
(void)memset(gptp, 0, GPT_HDR_SIZE);
(void)memcpy(buf, gptp, GPT_HDR_SIZE);
(void)memset(gptp, 0, GPT_HDR_SIZE);
hdr->hdr_size = htole32(GPT_HDR_SIZE);
htole32(crc32(gpt->gpt->map_data, GPT_HDR_SIZE));
hdr->hdr_size = htole32(GPT_HDR_SIZE);
hdr->hdr_crc_self = htole32(crc32(hdr, GPT_HDR_SIZE));
hdr->hdr_crc_self = htole32(crc32(hdr, GPT_HDR_SIZE));
gpth.hdr_crc_self = crc32(0, (const void *)&gpth, GPT_HDR_SIZE);