]> xenbits.xensource.com Git - libvirt.git/commit
qemu_snapshot: move snapshot metadata reparent code
authorPavel Hrdina <phrdina@redhat.com>
Tue, 11 Oct 2022 14:43:51 +0000 (16:43 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 9 Jan 2023 12:32:56 +0000 (13:32 +0100)
commitdeb35939ee81c867af248ad8cfa4fce4b3e0ce6a
tree92dca356b1c66f7874493b4fa14f8e05352f7d2b
parent9dd19a7a430ff5da4cdbf35a1ef10d06548b08d4
qemu_snapshot: move snapshot metadata reparent code

Previously the reparent happened before the actual snapshot deletion.
This change moves the code closer to the rest of the code handling
snapshot metadata when deletion happens. This makes the metadate
deletion happen after the data files are deleted.

Following patch will extract it into separate function

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