summaryrefslogtreecommitdiffstats
path: root/qapi/block-core.json
diff options
context:
space:
mode:
authorFam Zheng2018-03-13 15:20:02 +0100
committerKevin Wolf2018-03-19 12:01:39 +0100
commit1a5297366fe0d11e28fce694fc4377b85afca1da (patch)
tree4184b7cb77e45dd56c24e33226b66067f59be31c /qapi/block-core.json
parentvdi: Implement .bdrv_co_create (diff)
downloadqemu-1a5297366fe0d11e28fce694fc4377b85afca1da.tar.gz
qemu-1a5297366fe0d11e28fce694fc4377b85afca1da.tar.xz
qemu-1a5297366fe0d11e28fce694fc4377b85afca1da.zip
block: Fix flags in reopen queue
Reopen flags are not synchronized according to the bdrv_reopen_queue_child precedence until bdrv_reopen_prepare. It is a bit too late: we already check the consistency in bdrv_check_perm before that. This fixes the bug that when bdrv_reopen a RO node as RW, the flags for backing child are wrong. Before, we could recurse with flags.rw=1; now, role->inherit_options + update_flags_from_options will make sure to clear the bit when necessary. Note that this will not clear an explicitly set bit, as in the case of parallel block jobs (e.g. test_stream_parallel in 030), because the explicit options include 'read-only=false' (for an intermediate node used by a different job). Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi/block-core.json')
0 files changed, 0 insertions, 0 deletions