aboutsummaryrefslogtreecommitdiff
path: root/block/vdi.c
diff options
context:
space:
mode:
authorJeff Cody <jcody@redhat.com>2013-09-25 12:08:48 -0400
committerKevin Wolf <kwolf@redhat.com>2013-09-25 20:51:05 +0200
commit8368febd81cbf3cc71f5b0e92ef36e482dff37ca (patch)
tree4bbe1bebb96e8f4d0b5de01fd4ef1e9b4d026370 /block/vdi.c
parent9e6337d0818650362149b734d53edf9489f3acaa (diff)
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>
Diffstat (limited to 'block/vdi.c')
-rw-r--r--block/vdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vdi.c b/block/vdi.c
index dcbc27c9cb..b6ec0020dc 100644
--- a/block/vdi.c
+++ b/block/vdi.c
@@ -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). */