diff options
author | Stefan Hajnoczi | 2012-04-25 17:51:03 +0200 |
---|---|---|
committer | Luiz Capitulino | 2012-04-27 16:44:50 +0200 |
commit | c83c66c3b58893a4dc056e272822beb88fe9ec7f (patch) | |
tree | 890e9af2cbfef523b48c365df64820e96445185a /hmp-commands.hx | |
parent | block: change block-job-set-speed argument from 'value' to 'speed' (diff) | |
download | qemu-c83c66c3b58893a4dc056e272822beb88fe9ec7f.tar.gz qemu-c83c66c3b58893a4dc056e272822beb88fe9ec7f.tar.xz qemu-c83c66c3b58893a4dc056e272822beb88fe9ec7f.zip |
block: add 'speed' optional parameter to block-stream
Allow streaming operations to be started with an initial speed limit.
This eliminates the window of time between starting streaming and
issuing block-job-set-speed. Users should use the new optional 'speed'
parameter instead so that speed limits are in effect immediately when
the job starts.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Acked-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r-- | hmp-commands.hx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx index 8a929f0967..18cb415ac4 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -71,8 +71,8 @@ ETEXI { .name = "block_stream", - .args_type = "device:B,base:s?", - .params = "device [base]", + .args_type = "device:B,speed:o?,base:s?", + .params = "device [speed [base]]", .help = "copy data from a backing file into a block device", .mhandler.cmd = hmp_block_stream, }, |