block-commit: speed is an optional parameter
commit5450466394c95cea8b661fb197ed215a4ab5d700
authorMax Reitz <mreitz@redhat.com>
Thu, 10 Apr 2014 17:36:25 +0000 (10 19:36 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Apr 2014 11:59:49 +0000 (11 13:59 +0200)
treeb3eb49751b40bbbc06ae2a0c62aada168cdba23e
parentcd82b6fb4daf87f17742f7971ba6cb90d23e6703
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.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c