]> git.proxmox.com Git - mirror_qemu.git/commit - block/block-backend.c
block/qdev: Allow configuring rerror/werror with qdev properties
authorKevin Wolf <kwolf@redhat.com>
Wed, 29 Jun 2016 15:41:35 +0000 (17:41 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 13 Jul 2016 11:32:27 +0000 (13:32 +0200)
commit8c39825218227c0d63709708602d34c4355bad56
tree34dd245add610f9df29d03a4482b0b8cd42d079e
parent1e8fb7f1ee1ba902ab06cb8d54eca006c3b45f42
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>
block/block-backend.c
blockjob.c
hw/block/block.c
hw/block/virtio-blk.c
hw/core/qdev-properties.c
hw/ide/qdev.c
hw/scsi/scsi-disk.c
include/hw/block/block.h
include/hw/qdev-properties.h
qapi/block-core.json