diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-06-24 17:13:18 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-06-28 09:20:27 +0200 |
commit | 78b18b78aa89c28aecbd007ae1967c978d39bfd6 (patch) | |
tree | 52587c44800847e92f66553cab88bddeec7ccd40 /qapi-schema.json | |
parent | 3037f36446eb3556c14757ac468463c3902f331b (diff) | |
download | qemu-78b18b78aa89c28aecbd007ae1967c978d39bfd6.zip qemu-78b18b78aa89c28aecbd007ae1967c978d39bfd6.tar.gz qemu-78b18b78aa89c28aecbd007ae1967c978d39bfd6.tar.bz2 |
blockdev: add Abort transaction
The Abort action can be used to test QMP 'transaction' failure. Add it
as the last action to exercise the .abort() and .cleanup() code paths
for all previous actions.
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r-- | qapi-schema.json | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index 714108d..6590307 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1660,6 +1660,16 @@ '*on-target-error': 'BlockdevOnError' } } ## +# @Abort +# +# This action can be used to test transaction failure. +# +# Since: 1.6 +### +{ 'type': 'Abort', + 'data': { } } + +## # @TransactionAction # # A discriminated record of operations that can be performed with @@ -1668,7 +1678,8 @@ { 'union': 'TransactionAction', 'data': { 'blockdev-snapshot-sync': 'BlockdevSnapshot', - 'drive-backup': 'DriveBackup' + 'drive-backup': 'DriveBackup', + 'abort': 'Abort' } } ## |