]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
blockdev: move BDRV_O_NO_BACKING option forward
authorJohn Snow <jsnow@redhat.com>
Tue, 18 Jul 2017 00:34:21 +0000 (20:34 -0400)
committerKevin Wolf <kwolf@redhat.com>
Tue, 18 Jul 2017 13:27:20 +0000 (15:27 +0200)
commit2a32c6e82ed24d837ce7af346ffc93113f0164b5
tree7eed094eec1053c889ff149c411ccb904abb2c41
parent7c8730d45f63b76588da5ea0d4eff73a0bcae188
blockdev: move BDRV_O_NO_BACKING option forward

For both external_snapshot_prepare and qmp_drive_mirror, we eventually
append the option BDRV_O_NO_BACKING. However, we generally do so after
we create the image.

To accommodate image creation wanting to verify that a backing file
exists or not, add this option prior to create to override checking
the existence of the backing file. This prevents QEMU from trying to
re-open a backing file that's already in use (thanks to qcow2 locking).

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