]> git.proxmox.com Git - mirror_qemu.git/commit
replication: Avoid blk_make_empty() on read-only child
authorKevin Wolf <kwolf@redhat.com>
Fri, 15 May 2020 11:25:44 +0000 (13:25 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2020 17:05:25 +0000 (19:05 +0200)
commit6ecbc6c52672db5c13805735ca02784879ce8285
tree64d370422a8241e09dae8997ddffaffdc3e5e4cd
parent2d97fde43991829f74e1e258bb82031605bf9bca
replication: Avoid blk_make_empty() on read-only child

This is just a bandaid to keep tests/test-replication working after
bdrv_make_empty() starts to assert that we're not trying to call it on a
read-only child.

For the real solution in the future, replication should not steal the
BdrvChild from its backing file (this is never correct to do!), but
instead have its own child node references, with the appropriate
permissions.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/replication.c