]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: track qemu snapshot relations
authorEric Blake <eblake@redhat.com>
Fri, 7 Oct 2011 21:00:03 +0000 (15:00 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 11 Oct 2011 23:15:15 +0000 (17:15 -0600)
commit9279bdf757723b5c737c9839125e4b721384d531
tree18cfe9393627894ea5cd5954cb3b0903feab4980
parent7ec6f7bd339e665ea0769890763f08cae735391b
snapshot: track qemu snapshot relations

Maintain the parent/child relationships of all qemu snapshots.

* src/qemu/qemu_driver.c (qemuDomainSnapshotLoad): Populate
relationships after loading.
(qemuDomainSnapshotCreateXML): Set relations on creation; tweak
redefinition to reuse existing object.
(qemuDomainSnapshotReparentChildren, qemuDomainSnapshotDelete):
Clear relations on delete.
src/qemu/qemu_driver.c