[libvirt PATCH 11/11] domain_snapshot: update virDomainRevertToSnapshot description

Peter Krempa pkrempa at redhat.com
Tue Nov 16 15:14:24 UTC 2021


On Mon, Nov 15, 2021 at 17:22:54 +0100, Pavel Hrdina wrote:
> 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 <phrdina at redhat.com>
> ---
>  src/libvirt-domain-snapshot.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/src/libvirt-domain-snapshot.c b/src/libvirt-domain-snapshot.c
> index 4a79e95704..99316460aa 100644
> --- a/src/libvirt-domain-snapshot.c
> +++ b/src/libvirt-domain-snapshot.c
> @@ -960,6 +960,11 @@ 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. In case that the snapshot metadata lacks
> + * full VM XML we will error out as it is no longer possible to revert to

"If the snapshot metadata lacks the full VM XML it's no longer possible
to revert to such snapshot."

Instead of the last sentence.

Additionally you should add a similar notice to the virsh man page
(separate commit).

Reviewed-by: Peter Krempa <pkrempa at redhat.com>




More information about the libvir-list mailing list