]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_snapshot: delete: properly update parent snapshot with revert data
authorPavel Hrdina <phrdina@redhat.com>
Wed, 22 Feb 2023 10:43:45 +0000 (11:43 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 22 Aug 2023 14:06:29 +0000 (16:06 +0200)
commita68b849c513997e5f2513ba08dbfecce7d4e096b
tree8c2cb38c850caefb14218e4048991e49dcdfb2a4
parent7c402396eceb474279a1ba4b1245bd161cce5a42
qemu_snapshot: delete: properly update parent snapshot with revert data

When deleting external snapshot and parent snapshot is the currently
active snapshot as user reverted to it we need to properly update the
parent snapshot metadata.

After the delete is done the new overlay files will be the currently
used files created when snapshot revert was done, replacing the original
overlay files.

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