summary refs log tree commit diff stats
path: root/scripts/qapi.py
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-12-04 11:06:36 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2013-12-04 11:29:37 +0100
commitf8413b3c23b08a547ce18609acc6fae5fd04ed5c (patch)
tree01cb8f2707cb3fe8d626ef2550d304c074cfe73a /scripts/qapi.py
parent66f6b8143ba0fd873a0b4b4b3da41cf604bc5a11 (diff)
downloadfocaccia-qemu-f8413b3c23b08a547ce18609acc6fae5fd04ed5c.tar.gz
focaccia-qemu-f8413b3c23b08a547ce18609acc6fae5fd04ed5c.zip
qcow2: Zero-initialise first cluster for new images
Strictly speaking, this is only required for has_zero_init() == false,
but it's easy enough to just do a cluster-aligned write that is padded
with zeros after the header.

This fixes that after 'qemu-img create' header extensions are attempted
to be parsed that are really just random leftover data.

Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/qapi.py')
0 files changed, 0 insertions, 0 deletions