Revision 6cc2a415 qapi-schema.json

b/qapi-schema.json
1141 1141
# @snapshot-file: the target of the new image. A new file will be created.
1142 1142
#
1143 1143
# @format: #optional the format of the snapshot image, default is 'qcow2'.
1144
#
1145
# @mode: #optional whether and how QEMU should create a new image, default is
1146
# 'absolute-paths'.
1144 1147
##
1145 1148
{ 'type': 'BlockdevSnapshot',
1146 1149
  'data': { 'device': 'str', 'snapshot-file': 'str', '*format': 'str',
......
1197 1200
#
1198 1201
# @format: #optional the format of the snapshot image, default is 'qcow2'.
1199 1202
#
1203
# @mode: #optional whether and how QEMU should create a new image, default is
1204
# 'absolute-paths'.
1205
#
1200 1206
# Returns: nothing on success
1201 1207
#          If @device is not a valid block device, DeviceNotFound
1202 1208
#          If @snapshot-file can't be opened, OpenFileFailed
1203 1209
#          If @format is invalid, InvalidBlockFormat
1204 1210
#
1205
# Notes: One of the last steps taken by this command is to close the current
1206
#        image being used by @device and open the @snapshot-file one. If that
1207
#        fails, the command will try to reopen the original image file. If
1208
#        that also fails OpenFileFailed will be returned and the guest may get
1209
#        unexpected errors.
1210
#
1211 1211
# Since 0.14.0
1212 1212
##
1213 1213
{ 'command': 'blockdev-snapshot-sync',
1214
  'data': { 'device': 'str', 'snapshot-file': 'str', '*format': 'str' } }
1214
  'data': { 'device': 'str', 'snapshot-file': 'str', '*format': 'str',
1215
            '*mode': 'NewImageMode'} }
1215 1216

  
1216 1217
##
1217 1218
# @human-monitor-command:

Also available in: Unified diff