]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Don't modify persistent XML if disk source is different
authorPeter Krempa <pkrempa@redhat.com>
Fri, 9 Aug 2019 13:15:07 +0000 (15:15 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 26 Aug 2019 11:49:17 +0000 (13:49 +0200)
commit280aa77eaf66150b0af6f860303f66ff32a1b5c3
tree8eebf0fa473d3813c3649583dacc376044e4289d
parent6ff9241058dba35565ed594c7931e52a46a82b13
qemu: snapshot: Don't modify persistent XML if disk source is different

While the VM is running the persistent source of a disk might differ
e.g. as the 'newDef' was redefined. Our snapshot code would blindly
rewrite the source of such disk if it shared the 'target'. Fix this by
checking whether the source is the same in the first place.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c