]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow1: Make padding in the header explicit
authorKevin Wolf <kwolf@redhat.com>
Wed, 7 May 2014 14:56:10 +0000 (16:56 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Jul 2014 21:31:28 +0000 (16:31 -0500)
commit41819e90af4228c40a92da828a82446073412a5a
tree850a7885f042b221c4a276832a4e19133eae0764
parent97a0e27e719ad2d01420969adebb52f337fa6b94
qcow1: Make padding in the header explicit

We were relying on all compilers inserting the same padding in the
header struct that is used for the on-disk format. Let's not do that.
Mark the struct as packed and insert an explicit padding field for
compatibility.

Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
(cherry picked from commit ea54feff58efedc809641474b25a3130309678e7)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/qcow.c