]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Set BDRV_O_ALLOW_RDWR during rw reopen
authorKevin Wolf <kwolf@redhat.com>
Thu, 3 Aug 2017 15:02:59 +0000 (17:02 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 8 Aug 2017 13:19:16 +0000 (15:19 +0200)
commitfd4520212bd4fc9c86db4ccd4d9c3d612e8e58f9
treea51eb26f6950bb99f31a58048be3fb943526fb72
parent54a32bfec140e03ebb19863db944b1c81e4df25e
block: Set BDRV_O_ALLOW_RDWR during rw reopen

Reopening an image should be consistent with opening it, so we should
set BDRV_O_ALLOW_RDWR for any image that is reopened read-write like in
bdrv_open_inherit().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
block.c