mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
vmdk: Make VMDK3Header and VmdkGrainMarker QEMU_PACKED
It's best to make it consistent that all on disk structures are QEMU_PACKED. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
e4f5c1bf8f
commit
5d8caa543c
@ -62,7 +62,7 @@ typedef struct {
|
||||
uint32_t cylinders;
|
||||
uint32_t heads;
|
||||
uint32_t sectors_per_track;
|
||||
} VMDK3Header;
|
||||
} QEMU_PACKED VMDK3Header;
|
||||
|
||||
typedef struct {
|
||||
uint32_t version;
|
||||
@ -131,7 +131,7 @@ typedef struct VmdkGrainMarker {
|
||||
uint64_t lba;
|
||||
uint32_t size;
|
||||
uint8_t data[0];
|
||||
} VmdkGrainMarker;
|
||||
} QEMU_PACKED VmdkGrainMarker;
|
||||
|
||||
enum {
|
||||
MARKER_END_OF_STREAM = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user