aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/036
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-12-02 18:34:39 +0100
committerKevin Wolf <kwolf@redhat.com>2016-01-20 13:36:23 +0100
commitb527c9b392a87abff698ca435da0dfa2bd6324a2 (patch)
treea87643da38636b9561b0509a77d7625f3978e0ae /tests/qemu-iotests/036
parent1a4828c7934f592c146bc3dc979e78df430545cf (diff)
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>
Diffstat (limited to 'tests/qemu-iotests/036')
-rwxr-xr-xtests/qemu-iotests/0362
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qemu-iotests/036 b/tests/qemu-iotests/036
index 392f1ef3e6..c4cc91b8af 100755
--- a/tests/qemu-iotests/036
+++ b/tests/qemu-iotests/036
@@ -57,6 +57,7 @@ _make_test_img 64M
$PYTHON qcow2.py "$TEST_IMG" set-feature-bit incompatible 63
# Without feature table
+$PYTHON qcow2.py "$TEST_IMG" del-header-ext 0x6803f857
$PYTHON qcow2.py "$TEST_IMG" dump-header
_img_info
@@ -73,6 +74,7 @@ $PYTHON qcow2.py "$TEST_IMG" set-feature-bit incompatible 62
$PYTHON qcow2.py "$TEST_IMG" set-feature-bit incompatible 63
# Without feature table
+$PYTHON qcow2.py "$TEST_IMG" del-header-ext 0x6803f857
_img_info
# With feature table containing bit 63