]> Git Repo - qemu.git/commitdiff
block: vdi - use QEMU_PACKED for on-disk structures
authorJeff Cody <[email protected]>
Wed, 25 Sep 2013 16:08:48 +0000 (12:08 -0400)
committerKevin Wolf <[email protected]>
Wed, 25 Sep 2013 18:51:05 +0000 (20:51 +0200)
The header struct VdiHeader is an on-disk structure for the image
format, and as such should be packed.

Signed-off-by: Jeff Cody <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/vdi.c

index dcbc27c9cbd40dec6f082849a1a0e9b80066937e..b6ec0020dcbf314674e576fba084ad948b47273a 100644 (file)
@@ -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). */
This page took 0.027094 seconds and 4 git commands to generate.