gptsync/gptsync.c
static VOID copy_gpt_to_new_mbr(UINTN gpt_num, UINTN mbr_num) {
   new_mbr_parts[mbr_num].index     = mbr_num;
   new_mbr_parts[mbr_num].start_lba = gpt_parts[gpt_num].start_lba;
   new_mbr_parts[mbr_num].end_lba   = gpt_parts[gpt_num].end_lba;
   new_mbr_parts[mbr_num].mbr_type  = gpt_parts[gpt_num].mbr_type;
   new_mbr_parts[mbr_num].active    = FALSE;
}
// Copy a single GPT entry to the new_mbr_parts array.
Copy a single GPT entry to the new_mbr_parts array.
Copy a single GPT entry to the new_mbr_parts array .
static VOID copy_gpt_to_new_mbr(UINTN gpt_num, UINTN mbr_num) {
   new_mbr_parts[mbr_num].index     = mbr_num;
   new_mbr_parts[mbr_num].start_lba = gpt_parts[gpt_num].start_lba;
   new_mbr_parts[mbr_num].end_lba   = gpt_parts[gpt_num].end_lba;
   new_mbr_parts[mbr_num].mbr_type  = gpt_parts[gpt_num].mbr_type;
   new_mbr_parts[mbr_num].active    = FALSE;
}
static VOID copy_gpt_to_new_mbr ( UINTN gpt_num , UINTN mbr_num ) { new_mbr_parts [ mbr_num ] . index = mbr_num ; new_mbr_parts [ mbr_num ] . start_lba = gpt_parts [ gpt_num ] . start_lba ; new_mbr_parts [ mbr_num ] . end_lba = gpt_parts [ gpt_num ] . end_lba ; new_mbr_parts [ mbr_num ] . mbr_type = gpt_parts [ gpt_num ] . mbr_type ; new_mbr_parts [ mbr_num ] . active = FALSE ; }
Copy a single GPT entry to the new_mbr_parts array.
Copy a single GPT entry to the new_mbr_parts array .