From: Nikolay Shirokovskiy Date: Fri, 8 Apr 2016 07:41:31 +0000 (+0300) Subject: vz: remove check for auto file format for disks X-Git-Tag: v1.3.5-rc1~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38e1e06845c45b2e6169798d1194622f47a2f113;p=thirdparty%2Flibvirt.git vz: remove check for auto file format for disks 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 --- diff --git a/src/vz/vz_utils.c b/src/vz/vz_utils.c index ae99aa041a..49997f003a 100644 --- a/src/vz/vz_utils.c +++ b/src/vz/vz_utils.c @@ -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; } }