qemuDomainSnapshotDiskPrepareOne: Don't load the relative path with blockdev

Since we are refreshing the relative paths when doing the blockjobs we
no longer need to load them upfront when doing the snapshot.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2020-03-30 11:18:37 +02:00
parent ffc6249c79
commit 2ace7a87a8

View File

@ -15167,8 +15167,9 @@ qemuDomainSnapshotDiskPrepareOne(virQEMUDriverPtr driver,
dd->initialized = true;
/* relative backing store paths need to be updated so that relative
* block commit still works */
if (reuse) {
* block commit still works. With blockdev we must update it when doing
* commit anyways so it's skipped here */
if (reuse && !blockdev) {
if (supportsBacking) {
g_autofree char *backingStoreStr = NULL;