From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8WTk-0005nH-AP for qemu-devel@nongnu.org; Mon, 03 Sep 2012 09:14:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8WTc-0000yp-NP for qemu-devel@nongnu.org; Mon, 03 Sep 2012 09:14:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8WTc-0000yX-FN for qemu-devel@nongnu.org; Mon, 03 Sep 2012 09:14:04 -0400 Message-ID: <5044AD13.5060205@redhat.com> Date: Mon, 03 Sep 2012 15:13:55 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1346663926-20188-1-git-send-email-xiawenc@linux.vnet.ibm.com> <1346663926-20188-3-git-send-email-xiawenc@linux.vnet.ibm.com> In-Reply-To: <1346663926-20188-3-git-send-email-xiawenc@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/6] libqblock public type defines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wenchao Xia Cc: kwolf@redhat.com, stefanha@gmail.com, aliguori@us.ibm.com, eblake@redhat.com, qemu-devel@nongnu.org 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