Commit 54504663 authored by Max Reitz's avatar Max Reitz Committed by Kevin Wolf

block-commit: speed is an optional parameter

As speed is an optional parameter for the QMP block-commit command, it
should be set to 0 if not given (as it is undefined if has_speed is
false), that is, the speed should not be limited.

Signed-off-by: default avatarMax Reitz <>
Reviewed-by: default avatarEric Blake <>
Reviewed-by: default avatarFam Zheng <>
Signed-off-by: default avatarKevin Wolf <>
parent cd82b6fb
......@@ -1876,6 +1876,10 @@ void qmp_block_commit(const char *device,
BlockdevOnError on_error = BLOCKDEV_ON_ERROR_REPORT;
if (!has_speed) {
speed = 0;
/* drain all i/o before commits */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment