From 9b0a6d959b9420c82231f64fd11a575078bdaf89 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Mon, 15 Nov 2021 15:52:39 +0100 Subject: [PATCH] domain_snapshot: update virDomainRevertToSnapshot description We've changed the behavior of this API that from now on it will always restart the VM process and we are no longer able to revert to snapshots created by libvirt older then 0.9.5. Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa --- src/libvirt-domain-snapshot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libvirt-domain-snapshot.c b/src/libvirt-domain-snapshot.c index 4a79e95704..edbf25b04d 100644 --- a/src/libvirt-domain-snapshot.c +++ b/src/libvirt-domain-snapshot.c @@ -960,6 +960,10 @@ virDomainSnapshotHasMetadata(virDomainSnapshotPtr snapshot, * implies the intent to roll back state, no additional confirmation is * normally required for these lossy effects. * + * Since libvirt 7.10.0 the VM process is always restarted so the following + * paragraph is no longer valid. If the snapshot metadata lacks the full + * VM XML it's no longer possible to revert to such snapshot. + * * However, there are two particular situations where reverting will * be refused by default, and where @flags must include * VIR_DOMAIN_SNAPSHOT_REVERT_FORCE to acknowledge the risks. 1) Any