diff options
author | Wenchao Xia <xiawenc@linux.vnet.ibm.com> | 2013-09-11 14:04:36 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-09-12 10:12:47 +0200 |
commit | 44e3e053af56c1faec79ac9fdd78ef3f0ecd467e (patch) | |
tree | 2a725a4b93021a61d25fee1266816b0c72ee83ac /qapi-schema.json | |
parent | f323bc9e8b3b46ad28402995a9dcaaeff3eb5e03 (diff) | |
download | qemu-44e3e053af56c1faec79ac9fdd78ef3f0ecd467e.tar.gz qemu-44e3e053af56c1faec79ac9fdd78ef3f0ecd467e.tar.bz2 qemu-44e3e053af56c1faec79ac9fdd78ef3f0ecd467e.zip |
qmp: add interface blockdev-snapshot-delete-internal-sync
This interface use id and name as optional parameters, to handle the
case that one image contain multiple snapshots with same name which
may be '', but with different id.
Adding parameter id is for historical compatiability reason, and
that case is not possible in qemu's new interface for internal
snapshot at block device level, but still possible in qemu-img.
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r-- | qapi-schema.json | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index 43faf91410..145eca8855 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1825,6 +1825,33 @@ 'data': 'BlockdevSnapshotInternal' } ## +# @blockdev-snapshot-delete-internal-sync +# +# Synchronously delete an internal snapshot of a block device, when the format +# of the image used support it. The snapshot is identified by name or id or +# both. One of the name or id is required. Return SnapshotInfo for the +# successfully deleted snapshot. +# +# @device: the name of the device to delete the snapshot from +# +# @id: optional the snapshot's ID to be deleted +# +# @name: optional the snapshot's name to be deleted +# +# Returns: SnapshotInfo on success +# If @device is not a valid block device, DeviceNotFound +# If snapshot not found, GenericError +# If the format of the image used does not support it, +# BlockFormatFeatureNotSupported +# If @id and @name are both not specified, GenericError +# +# Since 1.7 +## +{ 'command': 'blockdev-snapshot-delete-internal-sync', + 'data': { 'device': 'str', '*id': 'str', '*name': 'str'}, + 'returns': 'SnapshotInfo' } + +## # @human-monitor-command: # # Execute a command on the human monitor and return the output. |