[libvirt] [PATCH 06/38] qemu: domain: Setup disk encryption password secret via new helper

Peter Krempa pkrempa at redhat.com
Wed May 30 12:41:02 UTC 2018


The encryption secret is setup only for LUKS and thus requires the new
approach. Use qemuDomainSecretInfoNew for initializing it.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/qemu/qemu_domain.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index 67bf2f6718..d9b10ae96d 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -1575,10 +1575,10 @@ qemuDomainSecretStorageSourcePrepare(qemuDomainObjPrivatePtr priv,

     if (hasEnc) {
         if (!(srcPriv->encinfo =
-              qemuDomainSecretInfoNewPlain(priv, encalias,
-                                           VIR_SECRET_USAGE_TYPE_VOLUME, NULL,
-                                           &src->encryption->secrets[0]->seclookupdef,
-                                           true)))
+              qemuDomainSecretInfoNew(priv, encalias,
+                                      VIR_SECRET_USAGE_TYPE_VOLUME, NULL,
+                                      &src->encryption->secrets[0]->seclookupdef,
+                                      true)))
               return -1;
     }

-- 
2.16.2




More information about the libvir-list mailing list