Re: [Qemu-block] [PATCH v2 1/2] block: Fix flags in reopen queue

2018-03-13 Thread Max Reitz
On 2018-03-13 12:58, Fam Zheng wrote: > 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 no

[Qemu-block] [PATCH v2 1/2] block: Fix flags in reopen queue

2018-03-13 Thread Fam Zheng
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. B