From 2ace7a87a8aced68c2504fd4dd4e2df4302c3eeb Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 30 Mar 2020 11:18:37 +0200 Subject: [PATCH] qemuDomainSnapshotDiskPrepareOne: Don't load the relative path with blockdev MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ján Tomko --- 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;