[PATCH 1/2] qemuValidateDomainDeviceDefDiskFrontend: Fix error message if io='native' is unsupported
Peter Krempa
pkrempa at redhat.com
Tue Dec 7 14:58:10 UTC 2021
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 at redhat.com>
---
src/qemu/qemu_validate.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c
index 1de6e05101..4ec3d18c52 100644
--- a/src/qemu/qemu_validate.c
+++ b/src/qemu/qemu_validate.c
@@ -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;
}
--
2.31.1
More information about the libvir-list
mailing list