Re: [Qemu-devel] [PATCH 1/6] block: Create bdrv_inherited_flags()

2014-04-29 Thread Max Reitz
On 25.04.2014 19:51, Kevin Wolf wrote: Instead of having bdrv_open_flags() as a function that creates flags for several unrelated places and then adding open-coded flags on top, create a new function that derives the flags for bs->file from the flags for bs. Signed-off-by: Kevin Wolf --- bloc

[Qemu-devel] [PATCH 1/6] block: Create bdrv_inherited_flags()

2014-04-25 Thread Kevin Wolf
Instead of having bdrv_open_flags() as a function that creates flags for several unrelated places and then adding open-coded flags on top, create a new function that derives the flags for bs->file from the flags for bs. Signed-off-by: Kevin Wolf --- block.c | 28 ++-- 1 f