]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: affect persistent xml after disk snapshot
authorEric Blake <eblake@redhat.com>
Sat, 17 Sep 2011 03:46:21 +0000 (21:46 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 17 Sep 2011 11:57:23 +0000 (05:57 -0600)
commit2895905a0bf2df9c557f0c8aaf96a59290dc1f86
tree8426839f85ff7b1fb2cf24b2e60f0f64584a320b
parent1726a736fbb59b74118e1181043b0a356c8bfd5b
snapshot: affect persistent xml after disk snapshot

For external snapshots to be useful on persistent domains, we must
alter the persistent definition alongside the running definition.
Thanks to the possibility of disk hotplug as well as of edits that
only affect the persistent xml, we can't assume that vm->def and
vm->newDef have the same disk at the same index, so we can only
update the persistent copy if the device destination matches up.

* src/qemu/qemu_driver.c (qemuDomainSnapshotCreateDiskActive)
(qemuDomainSnapshotCreateSingleDiskActive): Also affect newDef, if
present.
src/qemu/qemu_driver.c