提交 20ae6d72 编写于 作者: M Martin Kletzander 提交者: Cole Robinson

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=1329041Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
(cherry picked from commit 72c313bc)
上级 bc858f46
......@@ -1415,7 +1415,7 @@ qemuBuildDriveStr(virConnectPtr conn,
disk->blkdeviotune.size_iops_sec > QEMU_BLOCK_IOTUNE_MAX) {
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED,
_("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;
}
......
......@@ -17509,7 +17509,7 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
if (param->value.ul > QEMU_BLOCK_IOTUNE_MAX) {
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED,
_("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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册