提交 8368febd 编写于 作者: J Jeff Cody 提交者: Kevin Wolf

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: NJeff Cody <jcody@redhat.com>
Reviewed-by: NRichard Henderson <rth@twiddle.net>
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 9e6337d0
...@@ -165,7 +165,7 @@ typedef struct { ...@@ -165,7 +165,7 @@ typedef struct {
uuid_t uuid_link; uuid_t uuid_link;
uuid_t uuid_parent; uuid_t uuid_parent;
uint64_t unused2[7]; uint64_t unused2[7];
} VdiHeader; } QEMU_PACKED VdiHeader;
typedef struct { typedef struct {
/* The block map entries are little endian (even in memory). */ /* The block map entries are little endian (even in memory). */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册