]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Translate 'volume' disks before attempting offline snapshot manipulation
authorPeter Krempa <pkrempa@redhat.com>
Fri, 2 Jul 2021 14:00:05 +0000 (16:00 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Aug 2021 13:48:25 +0000 (15:48 +0200)
commit97e4fb3c106fe38c1440e762014390a9821a4d69
tree07439181cf188c90cee84666acde6fedc4e98543
parent9eef395fccbf9432a3c3026fdbf7e38be1a7b8ff
qemu: snapshot: Translate 'volume' disks before attempting offline snapshot manipulation

When the VM is inactive the 'virStorageSource' struct doesn't have the
necessary data pointing to the actual storage. This is a problem for
inactive snapshot operations on VMs which use disk type='volume'.

Add the translation steps for reversion and deletion of snapshots.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1977155
Resolves: https://gitlab.com/libvirt/libvirt/-/issues/202
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_snapshot.c