diff --git a/src/xenconfig/xen_xl.c b/src/xenconfig/xen_xl.c index bcdd355276587224fd46bcb5cb23a93c68d9fb92..ffdf798e1c7f4bbe6587099bbdc3d7735fabdb06 100644 --- a/src/xenconfig/xen_xl.c +++ b/src/xenconfig/xen_xl.c @@ -393,6 +393,12 @@ xenParseXLDisk(virConfPtr conf, virDomainDefPtr def) case LIBXL_DISK_FORMAT_EMPTY: break; + + default: + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, + _("disk image format not supported: %s"), + libxl_disk_format_to_string(libxldisk->format)); + goto fail; } switch (libxldisk->backend) { @@ -415,6 +421,11 @@ xenParseXLDisk(virConfPtr conf, virDomainDefPtr def) goto fail; virDomainDiskSetType(disk, VIR_STORAGE_TYPE_BLOCK); break; + default: + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, + _("disk backend not supported: %s"), + libxl_disk_backend_to_string(libxldisk->backend)); + goto fail; } }