summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel P. Berrange2017-11-17 12:29:13 +0100
committerKevin Wolf2017-11-17 13:36:03 +0100
commitf06033295b51d4868c2b4921ad2287e8f55eb688 (patch)
tree2f67d97df74504ba85d0e5ed5f41c3148bf84aa6 /include
parentblock: Deprecate bdrv_set_read_only() and users (diff)
downloadqemu-f06033295b51d4868c2b4921ad2287e8f55eb688.tar.gz
qemu-f06033295b51d4868c2b4921ad2287e8f55eb688.tar.xz
qemu-f06033295b51d4868c2b4921ad2287e8f55eb688.zip
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 'include')
0 files changed, 0 insertions, 0 deletions