]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_snapshot: fix external snapshot deletion for non-active snapshots
authorPavel Hrdina <phrdina@redhat.com>
Thu, 2 Mar 2023 22:48:08 +0000 (23:48 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 9 Mar 2023 16:16:11 +0000 (17:16 +0100)
commit403c0cf17fea62707334726fc4267b7f89aa19f1
treea0511bb3ea1b70470bfc467224c5829f2d5f125b
parent22a07239f5ea3d3ccd8a057cf83dcc09d6b7b0f0
qemu_snapshot: fix external snapshot deletion for non-active snapshots

For shutoff VMs we don't have the storage source backing chain
populated so it will fail this check and error out. Move it to
part that is done only when VM is running.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_snapshot.c