]> Git Repo - qemu.git/commit - block/qcow2.c
block: qcow2 - used QEMU_PACKED for on-disk structures
authorJeff Cody <[email protected]>
Wed, 25 Sep 2013 16:08:50 +0000 (12:08 -0400)
committerKevin Wolf <[email protected]>
Wed, 25 Sep 2013 18:51:13 +0000 (20:51 +0200)
commitc4217f645dfdfd405cd0c50af953515e1114436a
tree10c54129685ed5c7347c5746a3674356f254dbbc
parente54835c06d1f4896941c1505a86532aa1403ebe8
block: qcow2 - used QEMU_PACKED for on-disk structures

QCowHeader and QCowExtension are structs that reside in the on-disk
image format, and are read and written directly via bdrv_pread()/write(),
and as such should be packed to avoid any unintentional struct padding.

Signed-off-by: Jeff Cody <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/qcow2.c
block/qcow2.h
This page took 0.026873 seconds and 4 git commands to generate.