]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-io: prompt for encryption keys when required
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 12 May 2015 16:09:21 +0000 (17:09 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 May 2015 15:08:01 +0000 (17:08 +0200)
commit8caf02127e92939fff39b63a7ff1a5834d320191
treef4082246be8d80e43531c21bd68efa8240f78d61
parent6a11d5183fb7564a3d32007b46846312fd61a1c5
qemu-io: prompt for encryption keys when required

The qemu-io tool does not check if the image is encrypted so
historically would silently corrupt the sectors by writing
plain text data into them instead of cipher text. The earlier
commit turns this mistake into a fatal abort, so check for
encryption and prompt for key when required.

This enables us to add unit tests to ensure we don't break
the ability of qemu-img to convert existing encrypted qcow2
files into a non-encrypted format.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-io.c