mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-09 13:11:36 +00:00
qemu: Fix off-by-one error in block I/O throttle messages
QEMU_BLOCK_IOTUNE_MAX is the maximum inclusively, so let's modify the message so it makes sense. https://bugzilla.redhat.com/show_bug.cgi?id=1329041 Signed-off-by: Martin Kletzander <mkletzan@redhat.com> (cherry picked from commit 72c313bce9043a181cc951871f38a37f6cbeb785)
This commit is contained in:
parent
bc858f4682
commit
20ae6d725b
@ -1415,7 +1415,7 @@ qemuBuildDriveStr(virConnectPtr conn,
|
|||||||
disk->blkdeviotune.size_iops_sec > QEMU_BLOCK_IOTUNE_MAX) {
|
disk->blkdeviotune.size_iops_sec > QEMU_BLOCK_IOTUNE_MAX) {
|
||||||
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED,
|
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED,
|
||||||
_("block I/O throttle limit must "
|
_("block I/O throttle limit must "
|
||||||
"be less than %llu using QEMU"), QEMU_BLOCK_IOTUNE_MAX);
|
"be no more than %llu using QEMU"), QEMU_BLOCK_IOTUNE_MAX);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17509,7 +17509,7 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
|
|||||||
if (param->value.ul > QEMU_BLOCK_IOTUNE_MAX) {
|
if (param->value.ul > QEMU_BLOCK_IOTUNE_MAX) {
|
||||||
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED,
|
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED,
|
||||||
_("block I/O throttle limit value must"
|
_("block I/O throttle limit value must"
|
||||||
" be less than %llu"), QEMU_BLOCK_IOTUNE_MAX);
|
" be no more than %llu"), QEMU_BLOCK_IOTUNE_MAX);
|
||||||
goto endjob;
|
goto endjob;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user