|
| From: | Paolo Bonzini |
| Subject: | Re: [Qemu-devel] [PATCH 2/6] libqblock public type defines |
| Date: | Mon, 03 Sep 2012 15:13:55 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 |
Il 03/09/2012 11:18, Wenchao Xia ha scritto:
> +union QBlockOption_fmt {
> + struct QBlockOption_fmt_cow o_cow;
> + struct QBlockOption_fmt_qed o_qed;
> + struct QBlockOption_fmt_qcow o_qcow;
> + struct QBlockOption_fmt_qcow2 o_qcow2;
> + struct QBlockOption_fmt_raw o_raw;
> + struct QBlockOption_fmt_rbd o_rbd;
> + struct QBlockOption_fmt_sheepdog o_sheepdog;
> + struct QBlockOption_fmt_vdi o_vdi;
> + struct QBlockOption_fmt_vmdk o_vmdk;
> + struct QBlockOption_fmt_vpc o_vpc;
> +};
> +
> +struct QBlockOptionFormat {
> + enum QBlockFormat fmt_type;
> + union QBlockOption_fmt fmt_op;
> + uint8_t reserved[512];
> +};
Padding must be in the union not the struct. For the fourth time.
Paolo
| [Prev in Thread] | Current Thread | [Next in Thread] |