diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-03-06 18:55:58 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-03-12 15:14:07 +0100 |
commit | bc8b094feb61c5f3ad55113f1c9b3288dd843b10 (patch) | |
tree | ca553ea3a0a95fa7a9ccf48d001e90049c0cc0d9 /qapi-schema.json | |
parent | 52e7c241ac766406f05fa331eec9dbb33ebd2640 (diff) |
add mode field to blockdev-snapshot-sync transaction item
The mode field lets a management application create the snapshot
destination outside QEMU.
Right now, the only modes are "existing" and "absolute-paths". Mirroring
introduces "no-backing-file". In the future "relative-paths" could be
implemented too.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r-- | qapi-schema.json | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index 85de38ee83..0882f43936 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1118,6 +1118,22 @@ { 'command': 'block_resize', 'data': { 'device': 'str', 'size': 'int' }} ## +# @NewImageMode +# +# An enumeration that tells QEMU how to set the backing file path in +# a new image file. +# +# @existing: QEMU should look for an existing image file. +# +# @absolute-paths: QEMU should create a new image with absolute paths +# for the backing file. +# +# Since: 1.1 +## +{ 'enum': 'NewImageMode' + 'data': [ 'existing', 'absolute-paths' ] } + +## # @BlockdevSnapshot # # @device: the name of the device to generate the snapshot from. @@ -1127,7 +1143,8 @@ # @format: #optional the format of the snapshot image, default is 'qcow2'. ## { 'type': 'BlockdevSnapshot', - 'data': { 'device': 'str', 'snapshot-file': 'str', '*format': 'str' } } + 'data': { 'device': 'str', 'snapshot-file': 'str', '*format': 'str', + '*mode': 'NewImageMode' } } ## # @BlockdevAction |