]> xenbits.xensource.com Git - libvirt.git/commit
qemu_snapshot: rework snapshot children deletion
authorPavel Hrdina <phrdina@redhat.com>
Thu, 15 Dec 2022 14:40:45 +0000 (15:40 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 9 Jan 2023 12:32:53 +0000 (13:32 +0100)
commitf5bde47d6ccb5ff35da9b2d51f8b784dbe6bee8e
treed17c0305e3c0219d8ad75ed3c894044c9e065f6a
parenta3c8c7e37ad643419ce744b2ac7726468611c8c6
qemu_snapshot: rework snapshot children deletion

This simplifies the code a bit by reusing existing parts that deletes
a single snapshot.

The drawback of this change is that we will now call the re-parent bits
to keep the metadata in sync for every child even though it will get
deleted as well.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_snapshot.c