]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuDomainSnapshotDiskPrepareOne: Don't load the relative path with blockdev
authorPeter Krempa <pkrempa@redhat.com>
Mon, 30 Mar 2020 09:18:37 +0000 (11:18 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 30 Mar 2020 14:28:48 +0000 (16:28 +0200)
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>
src/qemu/qemu_driver.c

index ae38b9c914b68e87d6ccd3c3a7397a6b015fa159..78024614cfeb8a74e000eca30a096616d4ef8fae 100644 (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;