summaryrefslogtreecommitdiff
path: root/qmp-commands.hx
diff options
context:
space:
mode:
authorBenoƮt Canet <benoit@irqsave.net>2014-01-23 21:31:37 +0100
committerKevin Wolf <kwolf@redhat.com>2014-01-24 16:07:08 +0100
commit3b1dbd11a60d75e99af5fc9b73c34f4af9d4f510 (patch)
treea8758efe34e6caaa3dc29cd38cec46e45418c20c /qmp-commands.hx
parent212a5a8f095de9a1624de6b4a589d60688b02747 (diff)
downloadqemu-3b1dbd11a60d75e99af5fc9b73c34f4af9d4f510.tar.gz
qmp: Allow block_resize to manipulate bs graph nodes.
Signed-off-by: Benoit Canet <benoit@irqsave.net> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r--qmp-commands.hx3
1 files changed, 2 insertions, 1 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 5492eb061b..a45f26cc48 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -931,7 +931,7 @@ EQMP
{
.name = "block_resize",
- .args_type = "device:B,size:o",
+ .args_type = "device:s?,node-name:s?,size:o",
.mhandler.cmd_new = qmp_marshal_input_block_resize,
},
@@ -944,6 +944,7 @@ Resize a block image while a guest is running.
Arguments:
- "device": the device's ID, must be unique (json-string)
+- "node-name": the node name in the block driver state graph (json-string)
- "size": new size
Example: