]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_snapshot: update metadata when deleting snapshots
authorPavel Hrdina <phrdina@redhat.com>
Wed, 7 Dec 2022 13:17:24 +0000 (14:17 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 9 Jan 2023 12:33:06 +0000 (13:33 +0100)
commit7190582fbc2bb3b3c95c76acce41b49687de1053
tree6e9a50538dd8ca59604939e97a8521c61a18c129
parente27f08196710d3f565eb879a6f271a29a0ec00fe
qemu_snapshot: update metadata when deleting snapshots

With external snapshots we need to modify the metadata bit more then
what is required for internal snapshots. Mainly the storage source
location changes with every external snapshot.

This means that if we delete non-leaf snapshot we need to update all
children snapshots and modify the disk sources for all affected disks.

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