[PATCH v3 07/10] storage: Clean up storageBackendCreateQemuImgOpts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since we only generate the @encinfo when there's a secret object
and thus we need to reference it in the options,

Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
---
 src/storage/storage_util.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/storage/storage_util.c b/src/storage/storage_util.c
index fe588df7dd..e090521d79 100644
--- a/src/storage/storage_util.c
+++ b/src/storage/storage_util.c
@@ -827,12 +827,8 @@ storageBackendCreateQemuImgOpts(virStorageEncryptionInfoDefPtr encinfo,
         virBufferAsprintf(&buf, "backing_fmt=%s,",
                           virStorageFileFormatTypeToString(info.backingFormat));
 
-    if (info.format == VIR_STORAGE_FILE_RAW && encinfo) {
+    if (encinfo)
         virQEMUBuildQemuImgKeySecretOpts(&buf, encinfo, info.secretAlias);
-    } else {
-        if (info.encryption)
-            virBufferAddLit(&buf, "encryption=on,");
-    }
 
     if (info.preallocate) {
         if (info.size_arg > info.allocation)
-- 
2.14.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux