[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 02/14] block: Add bdrv_reopen_set_read_only()
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH 02/14] block: Add bdrv_reopen_set_read_only() |
Date: |
Mon, 8 Oct 2018 02:55:41 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
On 19.09.18 16:47, Alberto Garcia wrote:
> Most callers of bdrv_reopen() only use it to switch a BlockDriverState
> between read-only and read-write, so this patch adds a new function
> that does just that.
>
> We also want to get rid of the flags parameter in the bdrv_reopen()
> API, so this function sets the "read-only" option and passes the
> original flags (which will then be updated in bdrv_reopen_prepare()).
>
> Signed-off-by: Alberto Garcia <address@hidden>
> ---
> block.c | 17 +++++++++++++++++
> include/block/block.h | 2 ++
> 2 files changed, 19 insertions(+)
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-block] [PATCH 02/14] block: Add bdrv_reopen_set_read_only(),
Max Reitz <=