From bd77ea2e5ace7282ce2f1c523c60e5c4c6b44177 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Thu, 23 Jun 2016 15:28:23 +0200 Subject: qmp-commands: move 'x-blockdev-change' doc to schema Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- qapi/block-core.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'qapi') diff --git a/qapi/block-core.json b/qapi/block-core.json index 40b5e1ba8b..2611b365b3 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -3455,6 +3455,28 @@ # the rest of the array. # # Since: 2.7 +# +# Example: +# +# 1. Add a new node to a quorum +# -> { "execute": "blockdev-add", +# "arguments": { +# "options": { "driver": "raw", +# "node-name": "new_node", +# "file": { "driver": "file", +# "filename": "test.raw" } } } } +# <- { "return": {} } +# -> { "execute": "x-blockdev-change", +# "arguments": { "parent": "disk1", +# "node": "new_node" } } +# <- { "return": {} } +# +# 2. Delete a quorum's node +# -> { "execute": "x-blockdev-change", +# "arguments": { "parent": "disk1", +# "child": "children.1" } } +# <- { "return": {} } +# ## { 'command': 'x-blockdev-change', 'data' : { 'parent': 'str', -- cgit v1.2.3-55-g7522