]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Load data necessary for relative block commit to work
authorPeter Krempa <pkrempa@redhat.com>
Tue, 20 Jun 2017 06:19:02 +0000 (08:19 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 20 Jun 2017 11:25:55 +0000 (13:25 +0200)
commite20853e1d32ff517e6feec3146066ec433fc39e6
tree4a97d8510f0b3cddc85343932fea3cda85e3b584
parentd97cfdc891f262e1b0cd3ed05f7ca2bb7ef7de1c
qemu: snapshot: Load data necessary for relative block commit to work

Commit 7456c4f5f introduced a regression by not reloading the backing
chain of a disk after snapshot. The regression was caused as
src->relPath was not set and thus the block commit code could not
determine the relative path.

This patch adds code that will load the backing store string if
VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT and store it in the correct place
when a snapshot is successfully completed.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1461303
src/qemu/qemu_driver.c