]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuValidateDomainDeviceDefDiskFrontend: Fix error message if io='native' is unsupported
authorPeter Krempa <pkrempa@redhat.com>
Tue, 7 Dec 2021 12:53:30 +0000 (13:53 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 9 Dec 2021 13:04:44 +0000 (14:04 +0100)
The error is a hard error, so the part about fallback doesn't make
sense. Spell the attribute the same way as it's in XML.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_validate.c

index 1de6e05101283ed70cf97ffb9d107e30aeb4937d..4ec3d18c520c22207745913874c9a320e07d3fa6 100644 (file)
@@ -2865,9 +2865,7 @@ qemuValidateDomainDeviceDefDiskFrontend(const virDomainDiskDef *disk,
         disk->cachemode != VIR_DOMAIN_DISK_CACHE_DIRECTSYNC &&
         disk->cachemode != VIR_DOMAIN_DISK_CACHE_DISABLE) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                       _("native I/O needs either no disk cache "
-                         "or directsync cache mode, QEMU will fallback "
-                         "to aio=threads"));
+                       _("io='native' needs either no disk cache or directsync cache mode"));
         return -1;
     }