disk: Update grub_gpt_partentry
Rename grub_gpt_part_type to grub_gpt_part_guid and update grub_gpt_partentry to use this type for both the partition type GUID string and the partition GUID string entries. This change ensures that the two GUID fields are handled more consistently and helps to simplify the changes needed to add Linux partition GUID support. Signed-off-by: Nicholas Vinson <nvinson234@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
7ea9c0d396
commit
e6cc6f328a
6 changed files with 14 additions and 15 deletions
|
@ -39,7 +39,7 @@ grub_gpt_read_entries (grub_disk_t disk, grub_gpt_t gpt,
|
|||
grub_size_t *ret_entries_size);
|
||||
|
||||
char *
|
||||
grub_gpt_guid_to_str (grub_gpt_guid_t *guid)
|
||||
grub_gpt_guid_to_str (grub_gpt_part_guid_t *guid)
|
||||
{
|
||||
return grub_xasprintf ("%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
|
||||
grub_le_to_cpu32 (guid->data1),
|
||||
|
@ -308,7 +308,7 @@ grub_gpt_headers_equal (grub_gpt_t gpt)
|
|||
return 0;
|
||||
|
||||
return grub_memcmp(&gpt->primary.guid, &gpt->backup.guid,
|
||||
sizeof(grub_gpt_guid_t)) == 0;
|
||||
sizeof(grub_gpt_part_guid_t)) == 0;
|
||||
}
|
||||
|
||||
static grub_err_t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue