diff options
author | Stefan Hajnoczi | 2012-01-18 15:40:46 +0100 |
---|---|---|
committer | Kevin Wolf | 2012-01-26 14:49:14 +0100 |
commit | 12bd451fe0be83474910bb63b5874458141d4230 (patch) | |
tree | 2aec25bd837004ae1fac7a4951f824a7e0b2f9d7 /hmp-commands.hx | |
parent | block: rate-limit streaming operations (diff) | |
download | qemu-12bd451fe0be83474910bb63b5874458141d4230.tar.gz qemu-12bd451fe0be83474910bb63b5874458141d4230.tar.xz qemu-12bd451fe0be83474910bb63b5874458141d4230.zip |
qmp: add block_stream command
Add the block_stream command, which starts copy backing file contents
into the image file. Also add the BLOCK_JOB_COMPLETED QMP event which
is emitted when image streaming completes. Later patches add control
over the background copy speed, cancelation, and querying running
streaming operations.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r-- | hmp-commands.hx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx index e6506fc9d3..5f09594756 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -69,6 +69,19 @@ but should be used with extreme caution. Note that this command only resizes image files, it can not resize block devices like LVM volumes. ETEXI + { + .name = "block_stream", + .args_type = "device:B,base:s?", + .params = "device [base]", + .help = "copy data from a backing file into a block device", + .mhandler.cmd = hmp_block_stream, + }, + +STEXI +@item block_stream +@findex block_stream +Copy data from a backing file into a block device. +ETEXI { .name = "eject", |