[libvirt PATCH 1/3] qemu_snapshot: properly ignore disks with manual snapshot

Pavel Hrdina posted 3 patches 2 months, 3 weeks ago
[libvirt PATCH 1/3] qemu_snapshot: properly ignore disks with manual snapshot
Posted by Pavel Hrdina 2 months, 3 weeks ago
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2173142

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---
 src/qemu/qemu_snapshot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c
index cfa531edef..7207b5879a 100644
--- a/src/qemu/qemu_snapshot.c
+++ b/src/qemu/qemu_snapshot.c
@@ -2314,7 +2314,7 @@ qemuSnapshotDeleteExternalPrepare(virDomainObj *vm,
         g_autofree qemuSnapshotDeleteExternalData *data = NULL;
         virDomainSnapshotDiskDef *snapDisk = &(snapdef->disks[i]);
 
-        if (snapDisk->snapshot == VIR_DOMAIN_SNAPSHOT_LOCATION_NO)
+        if (snapDisk->snapshot != VIR_DOMAIN_SNAPSHOT_LOCATION_EXTERNAL)
             continue;
 
         if (snapDisk->snapshotDeleteInProgress) {
-- 
2.39.2