diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2017-11-17 11:29:13 +0000 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-11-17 13:36:03 +0100 |
commit | f06033295b51d4868c2b4921ad2287e8f55eb688 (patch) | |
tree | 2f67d97df74504ba85d0e5ed5f41c3148bf84aa6 /.gdbinit | |
parent | 398e6ad014df261d20d3fd6cff2cfbf940bac714 (diff) |
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 '.gdbinit')
0 files changed, 0 insertions, 0 deletions