qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/4] block: use QEMU_PACKED for on-disk structures
@ 2013-09-25 16:08 Jeff Cody
  2013-09-25 16:08 ` [Qemu-devel] [PATCH v2 1/4] block: vdi - " Jeff Cody
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Jeff Cody @ 2013-09-25 16:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, stefanha, rth

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-09-25 18:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-25 16:08 [Qemu-devel] [PATCH v2 0/4] block: use QEMU_PACKED for on-disk structures Jeff Cody
2013-09-25 16:08 ` [Qemu-devel] [PATCH v2 1/4] block: vdi - " Jeff Cody
2013-09-25 16:08 ` [Qemu-devel] [PATCH v2 2/4] block: vpc " Jeff Cody
2013-09-25 16:08 ` [Qemu-devel] [PATCH v2 3/4] block: qcow2 - used " Jeff Cody
2013-09-25 16:08 ` [Qemu-devel] [PATCH v2 4/4] block: qed - use " Jeff Cody
2013-09-25 16:32 ` [Qemu-devel] [PATCH v2 0/4] block: " Richard Henderson
2013-09-25 18:51   ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).