]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Allow inputvol to be encrypted
authorJohn Ferlan <jferlan@redhat.com>
Mon, 20 Aug 2018 16:25:44 +0000 (12:25 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 12 Sep 2018 11:24:04 +0000 (07:24 -0400)
commitb975afc72504e636ec538ea119bee9a0cd7b63d8
treef4e4fbc6d67314081199b96fc85157c24b223e18
parent80414718587ab8dd97025ec9145f30fa1a3654ed
storage: Allow inputvol to be encrypted

https://bugzilla.redhat.com/show_bug.cgi?id=1613737

When processing the inputvol for encryption, we need to handle
the case where the inputvol is encrypted. This then allows for
the encrypted inputvol to be used either for an output encrypted
volume or an output volume of some XML provided type.

Add tests to show the various conversion options when either input
or output is encrypted. This includes when both are encrypted.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/storage/storage_util.c
src/storage/storage_util.h
tests/storagevolxml2argvdata/luks-convert-encrypt.argv [new file with mode: 0644]
tests/storagevolxml2argvdata/luks-convert-encrypt2fileqcow2.argv [new file with mode: 0644]
tests/storagevolxml2argvdata/luks-convert-encrypt2fileraw.argv [new file with mode: 0644]
tests/storagevolxml2argvtest.c
tests/storagevolxml2xmlin/vol-encrypt1.xml [new file with mode: 0644]
tests/storagevolxml2xmlin/vol-encrypt2.xml [new file with mode: 0644]