]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Don't kill access to disk if snapshot creation fails
authorPeter Krempa <pkrempa@redhat.com>
Fri, 31 May 2013 13:38:46 +0000 (15:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 31 May 2013 13:41:59 +0000 (15:41 +0200)
commit177046753fa427609f217c319dba6fa465a4add4
treed7c89d0cd25b35f8411a34774285d4724a25602b
parent6c23d60961aae590af7b91ebd10cb8d3d248b64c
qemu: snapshot: Don't kill access to disk if snapshot creation fails

If snapshot creation failed for example due to invalid use of the
"REUSE_EXTERNAL" flag, libvirt killed access to the original image file
instead of the new image file. On machines with selinux this kills the
whole VM as the selinux context is enforced immediately.

* qemu_driver.c:qemuDomainSnapshotUndoSingleDiskActive():
    - Kill access to the new image file instead of the old one.

Partially resolves: https://bugzilla.redhat.com/show_bug.cgi?id=906639
src/qemu/qemu_driver.c