From 8c39825218227c0d63709708602d34c4355bad56 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Wed, 29 Jun 2016 17:41:35 +0200 Subject: 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 Reviewed-by: Max Reitz --- block/block-backend.c | 1 + 1 file changed, 1 insertion(+) (limited to 'block') diff --git a/block/block-backend.c b/block/block-backend.c index 0d7b801107..f9cea1b304 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -1173,6 +1173,7 @@ BlockErrorAction blk_get_error_action(BlockBackend *blk, bool is_read, return BLOCK_ERROR_ACTION_REPORT; case BLOCKDEV_ON_ERROR_IGNORE: return BLOCK_ERROR_ACTION_IGNORE; + case BLOCKDEV_ON_ERROR_AUTO: default: abort(); } -- cgit v1.2.3