diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-06-23 14:08:19 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-01-16 09:19:45 +0100 |
commit | 3282eca4aee00d17727b6ff520287afe559aa823 (patch) | |
tree | 3e79b50eb55463104e8b2edaed3b6a39024acdd6 /qapi | |
parent | b4039d8d23a6729c0206b3b3b14a9cd0bd618b69 (diff) | |
download | qemu-3282eca4aee00d17727b6ff520287afe559aa823.zip qemu-3282eca4aee00d17727b6ff520287afe559aa823.tar.gz qemu-3282eca4aee00d17727b6ff520287afe559aa823.tar.bz2 |
qmp-commands: move 'blockdev-snapshot' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/block-core.json | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json index 8848319..f745b88 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1193,9 +1193,31 @@ # # Generates a snapshot of a block device. # +# Create a snapshot, by installing 'node' as the backing image of +# 'overlay'. Additionally, if 'node' is associated with a block +# device, the block device changes to using 'overlay' as its new active +# image. +# # For the arguments, see the documentation of BlockdevSnapshot. # # Since: 2.5 +# +# Example: +# +# -> { "execute": "blockdev-add", +# "arguments": { "options": { "driver": "qcow2", +# "node-name": "node1534", +# "file": { "driver": "file", +# "filename": "hd1.qcow2" }, +# "backing": "" } } } +# +# <- { "return": {} } +# +# -> { "execute": "blockdev-snapshot", +# "arguments": { "node": "ide-hd0", +# "overlay": "node1534" } } +# <- { "return": {} } +# ## { 'command': 'blockdev-snapshot', 'data': 'BlockdevSnapshot' } |