]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vz: remove check for auto file format for disks
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 8 Apr 2016 07:41:31 +0000 (10:41 +0300)
committerMaxim Nestratov <mnestratov@virtuozzo.com>
Tue, 17 May 2016 10:35:28 +0000 (13:35 +0300)
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@virtuozzo.com>
src/vz/vz_utils.c

index ae99aa041a57705b27e4e4d91d50be3707a876d6..49997f003aa6d06e8bdf7664d4f904819010ec59 100644 (file)
@@ -414,8 +414,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;
             }
         }