]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Reparent children when deleting a snapshot
authorMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 22 Dec 2010 20:44:42 +0000 (21:44 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 23 Dec 2010 15:42:08 +0000 (16:42 +0100)
commit2412babedbff895083de51e87c28a9dbd78b9193
tree15e347c0e02dccc215363081c5db76b77e83a0a9
parent3ed3198a4e8ac99d4ec73dde6b2bbf30637929ed
qemu: Reparent children when deleting a snapshot

Shorten qemuDomainSnapshotWriteSnapshotMetadata function name
and make it take a snapshot pointer instead of dealing with
the current snapshot. Update other functions accordingly.

Add a qemuDomainSnapshotReparentChildren hash iterator to
reparent the children of a snapshot that is being deleted. Use
qemuDomainSnapshotWriteMetadata to write updated metadata
to disk.

This fixes a problem where outdated parent information breaks
the snapshot tree and hinders the deletion of child snapshots.

Reported by Philipp Hahn.
src/qemu/qemu_driver.c