]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add support for encrypted (qcow) volume creation.
authorMiloslav Trmač <mitr@redhat.com>
Tue, 21 Jul 2009 02:40:50 +0000 (04:40 +0200)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 1 Sep 2009 17:27:51 +0000 (18:27 +0100)
commit46acb0f2b75ebacfd6656fe30fd134944980c1f2
treeb99dc8aea1d14f91724104230da1c9054dc65431
parentd288703d57bc3c2c26794b581fe5366951085780
Add support for encrypted (qcow) volume creation.

Supports only virStorageVolCreateXML, not virStorageVolCreateXMLFrom.

Curiously, qemu-img does not need the passphrase for anything to create
an encrypted volume.  This implementation thus does not need to touch
any secrets to work with cooperating clients.  More generic passphrase
handling is added in the next patch.

* src/storage_backend.c: Request encryption when creating qcow/qcow2
  files
* src/storage_backend_disk.c, src/storage_backend_fs.c,
  src/storage_backend_logical.c: Refuse to create volumes with
  encryption params set.
src/storage_backend.c
src/storage_backend_disk.c
src/storage_backend_fs.c
src/storage_backend_logical.c