[libvirt] [PATCH] qemu: Reparent children when deleting a snapshot
Eric Blake
eblake at redhat.com
Wed Dec 22 21:13:26 UTC 2010
On 12/22/2010 01:56 PM, Matthias Bolte wrote:
> 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 | 92 +++++++++++++++++++++++++++++++++++++-----------
> 1 files changed, 71 insertions(+), 21 deletions(-)
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101222/c95c8004/attachment-0001.sig>
More information about the libvir-list
mailing list