]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: domain: Setup disk encryption password secret via new helper
authorPeter Krempa <pkrempa@redhat.com>
Tue, 22 May 2018 15:18:06 +0000 (17:18 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 Jun 2018 06:11:12 +0000 (08:11 +0200)
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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c

index 3689028d5bf4483313ac6f8503622f17f8df965f..71eb65ac76a6b956e0ecd7a53ca4199033c26418 100644 (file)
@@ -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;
     }