]> xenbits.xensource.com Git - libvirt.git/commitdiff
api: document support for external snapshot deletion
authorPavel Hrdina <phrdina@redhat.com>
Wed, 7 Dec 2022 16:11:19 +0000 (17:11 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 9 Jan 2023 12:33:19 +0000 (13:33 +0100)
Now that deletion of external snapshot is implemented document the
current virDomainSnapshotDelete supported state.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/libvirt-domain-snapshot.c

index 2917b8bd90407af98cccc15935f632ca4cce012d..ab6a0299159cc3902a23bd031e4416b6d0e5d36f 100644 (file)
@@ -1075,6 +1075,13 @@ virDomainRevertToSnapshot(virDomainSnapshotPtr snapshot,
  * libvirt metadata to track snapshots, then this flag is silently
  * ignored.
  *
+ * Since libvirt 9.0.0 deletion of external snapshots is supported
+ * for QEMU driver. Using @flags VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN
+ * and VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY is not supported with
+ * external snapshots. In case that daemon process is terminated
+ * while the snapshot delete is in process the operation will be
+ * aborted when the daemon starts again.
+ *
  * Returns 0 if the selected snapshot(s) were successfully deleted,
  * -1 on error.
  *