Lines Matching defs:header
166 Error("Cannot read primary GPT header\n");
172 Error("Cannot read secondary GPT header\n");
187 Warning("Primary GPT header is invalid\n");
201 Warning("Secondary GPT header is invalid\n");
213 Error("Cannot write primary header: %s\n", strerror(errno));
222 Error("Cannot write secondary header: %s\n", strerror(errno));
698 GptHeader *header = GetGptHeader(&drive->gpt);
699 if (!header)
701 return header->number_of_entries;
706 GptHeader *header = GetGptHeader(gpt);
708 uint32_t stride = header->size_of_entry;
710 require(entry_index < header->number_of_entries);
848 /* Two headers are NOT bitwise identical. For example, my_lba pointers to header
860 * If any one of header is invalid, copy from another. */
881 /* If we have an alternate GPT header signature, don't overwrite
894 /* We cannot trust any header, don't update entries. */
916 * We can recover one header from another through copying those fields. */
930 * we will use the primary header to overwrite secondary header.
933 * This function returns the bitmasks for modified header.
959 /* TODO (namnguyen): Preserve (header, entries) padding space. */