qemu/include
Alberto Garcia 6e1000a863 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>
2018-12-14 11:55:01 +01:00
..
block block: Add bdrv_reopen_set_read_only() 2018-12-14 11:55:01 +01:00
chardev
crypto
disas
exec
fpu
hw s390x patches for 4.0: 2018-12-13 13:06:09 +00:00
io
libdecnumber
migration
monitor
net
qapi
qemu
qom
scsi file-posix: Switch to .bdrv_co_ioctl 2018-12-14 11:52:41 +01:00
standard-headers
sysemu
ui
elf.h
glib-compat.h
qemu-common.h
qemu-io.h
trace-tcg.h