mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
block: vdi - use QEMU_PACKED for on-disk structures
The header struct VdiHeader is an on-disk structure for the image format, and as such should be packed. Signed-off-by: Jeff Cody <jcody@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
9e6337d081
commit
8368febd81
@ -165,7 +165,7 @@ typedef struct {
|
||||
uuid_t uuid_link;
|
||||
uuid_t uuid_parent;
|
||||
uint64_t unused2[7];
|
||||
} VdiHeader;
|
||||
} QEMU_PACKED VdiHeader;
|
||||
|
||||
typedef struct {
|
||||
/* The block map entries are little endian (even in memory). */
|
||||
|
Loading…
Reference in New Issue
Block a user