X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qmp-commands.hx;h=df40a3d42e3670376c76778f10399016e90c66e0;hb=refs%2Fheads%2Fstable-0.14;hp=2ed8f44227ac73c326f7c65266e1d7e002bcc308;hpb=e866e23959b45325414ac84a21f31dea79867ee6;p=qemu.git diff --git a/qmp-commands.hx b/qmp-commands.hx index 2ed8f4422..df40a3d42 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -636,6 +636,34 @@ Example: -> { "execute": "netdev_del", "arguments": { "id": "netdev1" } } <- { "return": {} } + +EQMP + + { + .name = "block_resize", + .args_type = "device:B,size:o", + .params = "device size", + .help = "resize a block image", + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_block_resize, + }, + +SQMP +block_resize +------------ + +Resize a block image while a guest is running. + +Arguments: + +- "device": the device's ID, must be unique (json-string) +- "size": new size + +Example: + +-> { "execute": "block_resize", "arguments": { "device": "scratch", "size": 1073741824 } } +<- { "return": {} } + EQMP {