diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-06-23 14:13:07 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-01-16 09:19:45 +0100 |
commit | 1cf75113f8955e8d2b3aa07fc11fb3a193bafd51 (patch) | |
tree | d1e9763936e2d6fc21976ab70ea1c372f07c52f9 | |
parent | b03364126c63d1565197850531f9ff8bfbb1cc1b (diff) | |
download | qemu-1cf75113f8955e8d2b3aa07fc11fb3a193bafd51.zip qemu-1cf75113f8955e8d2b3aa07fc11fb3a193bafd51.tar.gz qemu-1cf75113f8955e8d2b3aa07fc11fb3a193bafd51.tar.bz2 |
qmp-commands: move 'blockdev-backup' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r-- | docs/qmp-commands.txt | 35 | ||||
-rw-r--r-- | qapi/block-core.json | 8 |
2 files changed, 8 insertions, 35 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index be2acb0..513c2c7 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -208,41 +208,6 @@ Example: "base": "/tmp/master.qcow2" } } <- { "return": {} } -blockdev-backup ---------------- - -The device version of drive-backup: this command takes an existing named device -as backup target. - -Arguments: - -- "job-id": Identifier for the newly-created block job. If omitted, - the device name will be used. (json-string, optional) -- "device": the device name or node-name of a root node which should be copied. - (json-string) -- "target": the name of the backup target device. (json-string) -- "sync": what parts of the disk image should be copied to the destination; - possibilities include "full" for all the disk, "top" for only the - sectors allocated in the topmost image, or "none" to only replicate - new I/O (MirrorSyncMode). -- "speed": the maximum speed, in bytes per second (json-int, optional) -- "compress": true to compress data, if the target format supports it. - (json-bool, optional, default false) -- "on-source-error": the action to take on an error on the source, default - 'report'. 'stop' and 'enospc' can only be used - if the block device supports io-status. - (BlockdevOnError, optional) -- "on-target-error": the action to take on an error on the target, default - 'report' (no limitations, since this applies to - a different block device than device). - (BlockdevOnError, optional) - -Example: --> { "execute": "blockdev-backup", "arguments": { "device": "src-id", - "sync": "full", - "target": "tgt-id" } } -<- { "return": {} } - block-dirty-bitmap-add ---------------------- Since 2.4 diff --git a/qapi/block-core.json b/qapi/block-core.json index e7c0dff..d1f8155 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1368,6 +1368,14 @@ # If @device is not a valid block device, DeviceNotFound # # Since: 2.3 +# +# Example: +# -> { "execute": "blockdev-backup", +# "arguments": { "device": "src-id", +# "sync": "full", +# "target": "tgt-id" } } +# <- { "return": {} } +# ## { 'command': 'blockdev-backup', 'boxed': true, 'data': 'BlockdevBackup' } |