OSDN Git Service

qcow2: Write full header on image creation
authorKevin Wolf <kwolf@redhat.com>
Wed, 2 Dec 2015 17:34:39 +0000 (18:34 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 20 Jan 2016 12:36:23 +0000 (13:36 +0100)
commitb527c9b392a87abff698ca435da0dfa2bd6324a2
treea87643da38636b9561b0509a77d7625f3978e0ae
parent1a4828c7934f592c146bc3dc979e78df430545cf
qcow2: Write full header on image creation

When creating a qcow2 image, we didn't necessarily call
qcow2_update_header(), but could end up with the basic header that
qcow2_create2() created manually. One thing that this basic header
lacks is the feature table. Let's make sure that it's always present.

This requires a few updates to test cases as well.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/qcow2.c
tests/qemu-iotests/031.out
tests/qemu-iotests/036
tests/qemu-iotests/036.out
tests/qemu-iotests/061.out