Searched hist:"6 e1000a863f9dcdb4a6f51cd7cd0782f23120ba5" (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/include/block/ |
H A D | block.h | diff 6e1000a863f9dcdb4a6f51cd7cd0782f23120ba5 Mon Nov 12 08:00:33 CST 2018 Alberto Garcia <berto@igalia.com> block: Add bdrv_reopen_set_read_only()
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 <berto@igalia.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
/openbmc/qemu/ |
H A D | block.c | diff 6e1000a863f9dcdb4a6f51cd7cd0782f23120ba5 Mon Nov 12 08:00:33 CST 2018 Alberto Garcia <berto@igalia.com> block: Add bdrv_reopen_set_read_only()
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 <berto@igalia.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|