diff options
author | Jeff Cody <jcody@redhat.com> | 2013-09-25 12:08:48 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-09-25 20:51:05 +0200 |
commit | 8368febd81cbf3cc71f5b0e92ef36e482dff37ca (patch) | |
tree | 4bbe1bebb96e8f4d0b5de01fd4ef1e9b4d026370 | |
parent | 9e6337d0818650362149b734d53edf9489f3acaa (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>
-rw-r--r-- | block/vdi.c | 2 |
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). */ |