[PATCH 1/6] vz: remove check for auto file format for disks

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

 



VIR_STORAGE_FILE_AUTO can not be set from xml description.
At the same time we don't set disks format to this value
as for example qemu does. Thus this we can never get this
value in format.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx>
---
 src/vz/vz_utils.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/vz/vz_utils.c b/src/vz/vz_utils.c
index fed48a5..e6b0a27 100644
--- a/src/vz/vz_utils.c
+++ b/src/vz/vz_utils.c
@@ -415,8 +415,7 @@ vzCheckUnsupportedDisks(virDomainDefPtr def, vzCapabilitiesPtr vzCaps)
         } else {
             if (disk->device == VIR_DOMAIN_DISK_DEVICE_DISK) {
                 supported = diskFormat == VIR_STORAGE_FILE_RAW ||
-                            diskFormat == VIR_STORAGE_FILE_NONE ||
-                            diskFormat == VIR_STORAGE_FILE_AUTO;
+                            diskFormat == VIR_STORAGE_FILE_NONE;
             }
         }
 
-- 
1.8.3.1

--
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]