cgpt/cgpt_common.c
/* The above five fields are shared between primary and secondary headers.
 * We can recover one header from another through copying those fields. */
The above five fields are shared between primary and secondary headers.
We can recover one header from another through copying those fields.
The above five fields are shared between primary and secondary headers . We can recover one header from another through copying those fields .
static void CopySynonymousParts(GptHeader* target, const GptHeader* source) {
  target->first_usable_lba = source->first_usable_lba;
  target->last_usable_lba = source->last_usable_lba;
  target->number_of_entries = source->number_of_entries;
  target->size_of_entry = source->size_of_entry;
  memcpy(&target->disk_uuid, &source->disk_uuid, sizeof(Guid));
}
static void CopySynonymousParts ( GptHeader * target , const GptHeader * source ) { target -> first_usable_lba = source -> first_usable_lba ; target -> last_usable_lba = source -> last_usable_lba ; target -> number_of_entries = source -> number_of_entries ; target -> size_of_entry = source -> size_of_entry ; memcpy ( & target -> disk_uuid , & source -> disk_uuid , sizeof ( Guid ) ) ; }
The above five fields are shared between primary and secondary headers.
The above five fields are shared between primary and secondary headers .