Re: [Qemu-devel] [PATCH 02/14] block: Add bdrv_reopen_set_read_only()

2018-10-07 Thread Max Reitz
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 func

[Qemu-devel] [PATCH 02/14] block: Add bdrv_reopen_set_read_only()

2018-09-19 Thread Alberto Garcia
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 origi