Re: [Qemu-devel] [PULL 16/31] block: Fix open_flags in bdrv_reopen()

2014-05-04 Thread Jan Kiszka
On 2014-04-30 20:23, Kevin Wolf wrote: > Use the same function as bdrv_open() for determining what the right > flags for bs->file are. Without doing this, a reopen means that > bs->file loses BDRV_O_CACHE_WB or BDRV_O_UNMAP if bs doesn't have it as > well. > > Signed-off-by: Kevin Wolf > Reviewed

[Qemu-devel] [PULL 16/31] block: Fix open_flags in bdrv_reopen()

2014-04-30 Thread Kevin Wolf
Use the same function as bdrv_open() for determining what the right flags for bs->file are. Without doing this, a reopen means that bs->file loses BDRV_O_CACHE_WB or BDRV_O_UNMAP if bs doesn't have it as well. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz --- block.c | 5 - 1 file change