[libvirt PATCH 28/30] qemu_snapshot: enable deletion of external snapshots

Pavel Hrdina phrdina at redhat.com
Thu Dec 8 13:31:04 UTC 2022


Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 src/qemu/qemu_snapshot.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c
index 253de1196b..68acf54917 100644
--- a/src/qemu/qemu_snapshot.c
+++ b/src/qemu/qemu_snapshot.c
@@ -3089,9 +3089,9 @@ qemuSnapshotDeleteValidate(virDomainObj *vm,
     }
 
     if (virDomainSnapshotIsExternal(snap) &&
-        !(flags & VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY)) {
+        (flags & VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN)) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                       _("deletion of external disk snapshots not supported"));
+                       _("deletion of external disk snapshots with children not supported"));
         return -1;
     }
 
-- 
2.38.1



More information about the libvir-list mailing list