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(a)redhat.com>
---
src/qemu/qemu_driver.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index ae38b9c914..78024614cf 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -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;
--
2.24.1