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 <be...@igalia.com> > --- > block.c | 17 +++++++++++++++++ > include/block/block.h | 2 ++ > 2 files changed, 19 insertions(+)
Reviewed-by: Max Reitz <mre...@redhat.com>
signature.asc
Description: OpenPGP digital signature