From b527c9b392a87abff698ca435da0dfa2bd6324a2 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Wed, 2 Dec 2015 18:34:39 +0100 Subject: 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 Reviewed-by: Eric Blake --- tests/qemu-iotests/036.out | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/qemu-iotests/036.out') diff --git a/tests/qemu-iotests/036.out b/tests/qemu-iotests/036.out index 5616e37..f443635 100644 --- a/tests/qemu-iotests/036.out +++ b/tests/qemu-iotests/036.out @@ -56,6 +56,11 @@ autoclear_features 0x8000000000000000 refcount_order 4 header_length 104 +Header extension: +magic 0x6803f857 +length 144 +data + === Repair image === -- cgit v1.1