]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
block: Fix -incoming with snapshot=on
authorKevin Wolf <kwolf@redhat.com>
Fri, 19 Feb 2016 15:48:10 +0000 (16:48 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 22 Feb 2016 08:49:46 +0000 (09:49 +0100)
commit12d5ee3a7e83a42ba75a79b220a9db4dacd70a6e
tree213170f7769782df87cc56ed9bef124bf04efcd5
parentbca5a8f4624f1859ad1a2b078e6b685456e6befd
block: Fix -incoming with snapshot=on

The BDRV_O_INACTIVE flag should only be set for images explicitly opened
by the user. snapshot=on needs to create a new qcow2 image and write
some metadata to it. This is not a problem because it can't come from
the source, so there's no reason to mark it as BDRV_O_INACTIVE, even
though it is opened while waiting for the migration to complete.

This fixes an assertion failure when -incoming and snapshot=on are
combined.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
blockdev.c
tests/qemu-iotests/145 [new file with mode: 0755]
tests/qemu-iotests/145.out [new file with mode: 0644]
tests/qemu-iotests/group