|
From: | Max Reitz |
Subject: | Re: [Qemu-devel] [PATCH 6/6] block: Fix open_flags in bdrv_reopen() |
Date: | Tue, 29 Apr 2014 18:20:18 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
On 25.04.2014 19:51, 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 <address@hidden> --- block.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Reviewed-by: Max Reitz <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |