diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-06-29 17:41:35 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-07-13 13:32:27 +0200 |
commit | 8c39825218227c0d63709708602d34c4355bad56 (patch) | |
tree | 34dd245add610f9df29d03a4482b0b8cd42d079e /qapi/block-core.json | |
parent | 1e8fb7f1ee1ba902ab06cb8d54eca006c3b45f42 (diff) |
block/qdev: Allow configuring rerror/werror with qdev properties
The rerror/werror policies are implemented in the devices, so that's
where they should be configured. In comparison to the old options in
-drive, the qdev properties are only added to those devices that
actually support them.
If the option isn't given (or "auto" is specified), the setting of the
BlockBackend is used for compatibility with the old options. For block
jobs, "auto" is the same as "enospc".
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'qapi/block-core.json')
-rw-r--r-- | qapi/block-core.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json index 3f77dac07d..0d30187691 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -664,10 +664,12 @@ # @stop: for guest operations, stop the virtual machine; # for jobs, pause the job # +# @auto: inherit the error handling policy of the backend (since: 2.7) +# # Since: 1.3 ## { 'enum': 'BlockdevOnError', - 'data': ['report', 'ignore', 'enospc', 'stop'] } + 'data': ['report', 'ignore', 'enospc', 'stop', 'auto'] } ## # @MirrorSyncMode: |