]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_snapshot: fix reverting to inactive snapshot
authorPavel Hrdina <phrdina@redhat.com>
Wed, 1 Nov 2023 13:01:32 +0000 (14:01 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 16 Nov 2023 14:29:45 +0000 (15:29 +0100)
commit3ad5817053aa779c9536a624f260774b7afb64f6
tree88253efa6385348a3a69f14796d11491c8b1722b
parent03a9a39c42fdfcec85f6aaf5ee1cefb4b9547ccd
qemu_snapshot: fix reverting to inactive snapshot

When reverting to inactive snapshot updating the domain definition needs
to happen after the new overlays are created otherwise qemu-img will
correctly fail with error:

    Trying to create an image with the same filename as the backing file

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