]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: add support for qcow2 LUKS encryption
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 15 Sep 2020 15:30:37 +0000 (16:30 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 18 Sep 2020 10:22:28 +0000 (11:22 +0100)
commitecfc4094d832a23fb56e1825d799c93488c168d7
treeb15e14e59d4ca949912d0fb12145602326c2fab4
parent093ee8b3e258cc1474cc8f89d4a35f5672c27fab
storage: add support for qcow2 LUKS encryption

The storage driver was wired up to support creating raw volumes in LUKS
format, but was never adapted to support LUKS-in-qcow2. This is trivial
as it merely requires the encryption properties to be prefixed with
the "encrypt." prefix, and "encrypt.format=luks" when creating the
volume.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
12 files changed:
src/storage/storage_util.c
src/util/virqemu.c
src/util/virqemu.h
tests/storagevolxml2argvdata/qcow2-luks-convert-encrypt.argv [new file with mode: 0644]
tests/storagevolxml2argvdata/qcow2-luks-convert-encrypt2fileqcow2.argv [new file with mode: 0644]
tests/storagevolxml2argvdata/qcow2-luks-convert-encrypt2fileraw.argv [new file with mode: 0644]
tests/storagevolxml2argvdata/qcow2-luks.argv [new file with mode: 0644]
tests/storagevolxml2argvtest.c
tests/storagevolxml2xmlin/vol-qcow2-luks-convert.xml [new file with mode: 0644]
tests/storagevolxml2xmlin/vol-qcow2-luks.xml [new file with mode: 0644]
tests/storagevolxml2xmlout/vol-qcow2-luks.xml [new file with mode: 0644]
tests/storagevolxml2xmltest.c