aboutsummaryrefslogtreecommitdiff
path: root/block/blkdebug.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-05-08 17:49:53 +0200
committerKevin Wolf <kwolf@redhat.com>2015-12-18 14:34:43 +0100
commit91a097e7478940483e76d52217f05bc05b98d5a5 (patch)
tree41e7a5b8c00033680f05789227c43fbcdb938600 /block/blkdebug.c
parentccf9dc07b5c8f3b927d53e9ef8c712c2973d79c7 (diff)
downloadqemu-91a097e7478940483e76d52217f05bc05b98d5a5.zip
qemu-91a097e7478940483e76d52217f05bc05b98d5a5.tar.gz
qemu-91a097e7478940483e76d52217f05bc05b98d5a5.tar.bz2
block: Move cache options into options QDict
This adds the cache mode options to the QDict, so that they can be specified for child nodes (e.g. backing.cache.direct=off). The cache modes are not removed from the flags at this point; instead, options and flags are kept in sync. If the user specifies both flags and options, the options take precedence. Child node inherit cache modes as options now, they don't use flags any more. Note that this forbids specifying the cache mode for empty drives. It didn't make sense anyway to specify it there, because it didn't have any effect. blockdev_init() considers the cache options now bdrv_open() options and therefore doesn't create an empty drive any more but calls into bdrv_open(). This in turn will fail with no driver and filename specified. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/blkdebug.c')
0 files changed, 0 insertions, 0 deletions