summaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/group
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2017-11-17 11:29:13 +0000
committerKevin Wolf <kwolf@redhat.com>2017-11-17 13:36:03 +0100
commitf06033295b51d4868c2b4921ad2287e8f55eb688 (patch)
tree2f67d97df74504ba85d0e5ed5f41c3148bf84aa6 /tests/qemu-iotests/group
parent398e6ad014df261d20d3fd6cff2cfbf940bac714 (diff)
downloadqemu-f06033295b51d4868c2b4921ad2287e8f55eb688.tar.gz
qcow2: fix image corruption after committing qcow2 image into base
After committing the qcow2 image contents into the base image, qemu-img will call bdrv_make_empty to drop the payload in the layered image. When this is done for qcow2 images, it blows away the LUKS encryption header, making the resulting image unusable. There are two codepaths for emptying a qcow2 image, and the second (slower) codepath leaves the LUKS header intact, so force use of that codepath. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/group')
-rw-r--r--tests/qemu-iotests/group1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group
index 24e5ad1b79..83b839bbe3 100644
--- a/tests/qemu-iotests/group
+++ b/tests/qemu-iotests/group
@@ -194,3 +194,4 @@
194 rw auto migration quick
195 rw auto quick
197 rw auto quick
+198 rw auto