diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 8bf810be29..5302c80165 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -169,22 +169,6 @@ Example: <- { "return": { "status": "active", "completed": 1024000, "total": 2048000 } } -block_resize ------------- - -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: - --> { "execute": "block_resize", "arguments": { "device": "scratch", "size": 1073741824 } } -<- { "return": {} } - block-stream ------------ diff --git a/qapi/block-core.json b/qapi/block-core.json index 439463dec5..d1bc2e5901 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -999,6 +999,13 @@ # If @device is not a valid block device, DeviceNotFound # # Since: 0.14.0 +# +# Example: +# +# -> { "execute": "block_resize", +# "arguments": { "device": "scratch", "size": 1073741824 } } +# <- { "return": {} } +# ## { 'command': 'block_resize', 'data': { '*device': 'str', '*node-name': 'str',