From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOre7-0001Fv-1u for qemu-devel@nongnu.org; Wed, 25 Sep 2013 12:09:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOre2-0003zP-6V for qemu-devel@nongnu.org; Wed, 25 Sep 2013 12:08:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOre1-0003zI-Uj for qemu-devel@nongnu.org; Wed, 25 Sep 2013 12:08:54 -0400 From: Jeff Cody Date: Wed, 25 Sep 2013 12:08:47 -0400 Message-Id: Subject: [Qemu-devel] [PATCH v2 0/4] block: use QEMU_PACKED for on-disk structures List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com, rth@twiddle.net v2 changes: Dropped the "cow" format patch. This means "cow" is non-portable, but it keeps behavior the same on x86_64. (Richard Henderson) Moved QEMU_PACKED to after the struct definition closing brace, to keep it more stylistically in-line with other QEMU_PACKED useage (Kevin Wolf) Original description: Several block image formats did not consistently use packed attributes when directly reading / writing structures from disk (mainly image format headers). These series updates the image formats (see list below), to use QEMU_PACKED for on-disk structs. (Some minor code cleanup may also have ensued, to keep checkpatch.pl happy) Jeff Cody (4): block: vdi - use QEMU_PACKED for on-disk structures block: vpc - use QEMU_PACKED for on-disk structures block: qcow2 - used QEMU_PACKED for on-disk structures block: qed - use QEMU_PACKED for on-disk structures block/qcow2.c | 2 +- block/qcow2.h | 2 +- block/qed.h | 2 +- block/vdi.c | 2 +- block/vpc.c | 28 ++++++++++++++-------------- 5 files changed, 18 insertions(+), 18 deletions(-) -- 1.8.3.1