]> git.proxmox.com Git - mirror_qemu.git/commit
block: Update flags in bdrv_set_read_only()
authorKevin Wolf <kwolf@redhat.com>
Tue, 9 Oct 2018 14:57:12 +0000 (16:57 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Nov 2018 14:09:55 +0000 (15:09 +0100)
commiteeae6a596b0efc092f5101c67683053e245e6250
treeaac0249cb431b4924304c646ffd11b738d044f9b
parent04f600ef7cacaa2a81b74b2cdd3670cfc106d0e2
block: Update flags in bdrv_set_read_only()

To fully change the read-only state of a node, we must not only change
bs->read_only, but also update bs->open_flags.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
block.c