mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 00:59:55 +00:00
gpt_partition: Mark grub_gpt_partentry as having natural alignment
gpt_partition contains grub_guid. We need to decide whether the whole structure is unaligned and then we need to use packed_guid. But we never have unaligned part entries as we read them in an aligned buffer from disk. Hence just make it all aligned. Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
This commit is contained in:
1 parent
7ad30299da
commit
5fc985bfdd
1 file changed
+1
-1
@@ -67,7 +67,7 @@ struct grub_gpt_partentry
|
|||||||
grub_uint64_t end;
|
grub_uint64_t end;
|
||||||
grub_uint64_t attrib;
|
grub_uint64_t attrib;
|
||||||
char name[72];
|
char name[72];
|
||||||
} GRUB_PACKED;
|
};
|
||||||
|
|
||||||
grub_err_t
|
grub_err_t
|
||||||
grub_gpt_partition_map_iterate (grub_disk_t disk,
|
grub_gpt_partition_map_iterate (grub_disk_t disk,
|
||||||
|
|||||||
Reference in new issue
Block a user