[libvirt] [PATCH v6 8/8] backup: Introduce virDomainCheckpointPtr

Ján Tomko jtomko at redhat.com
Fri Mar 15 13:35:36 UTC 2019


On Fri, Mar 15, 2019 at 12:02:33AM -0500, Eric Blake wrote:
>Prepare for introducing a bunch of new public APIs related to backup
>checkpoints by first introducing a new internal type and errors
>associated with that type.  Checkpoints are modeled heavily after
>virDomainSnapshotPtr (both represent a point in time of the guest),
>although a snapshot exists with the intent of rolling back to that
>state, while a checkpoint exists to make it possible to create an
>incremental backup at a later time.  Thus, it shares the common
>virDomainMoment base class created in the previous patches.
>
>Signed-off-by: Eric Blake <eblake at redhat.com>
>---
> include/libvirt/virterror.h |  6 +++++-
> src/util/virerror.c         | 12 ++++++++++-
> include/libvirt/libvirt.h   |  6 +++++-
> src/datatypes.h             | 42 ++++++++++++++++++++++++++++++++++++-
> src/datatypes.c             | 22 +++++++++++++++++++
> src/libvirt_private.syms    |  2 ++
> 6 files changed, 86 insertions(+), 4 deletions(-)
>
>diff --git a/include/libvirt/virterror.h b/include/libvirt/virterror.h
>index 3c19ff5e2e..bccf3c731e 100644
>--- a/include/libvirt/virterror.h
>+++ b/include/libvirt/virterror.h
>@@ -4,7 +4,7 @@
>  * Description: Provides the interfaces of the libvirt library to handle
>  *              errors raised while using the library.
>  *
>- * Copyright (C) 2006-2016 Red Hat, Inc.
>+ * Copyright (C) 2006-2019 Red Hat, Inc.
>  *
>  * This library is free software; you can redistribute it and/or
>  * modify it under the terms of the GNU Lesser General Public
>@@ -132,6 +132,7 @@ typedef enum {
>     VIR_FROM_LIBSSH = 66,       /* Error from libssh connection transport */
>     VIR_FROM_RESCTRL = 67,      /* Error from resource control */
>     VIR_FROM_FIREWALLD = 68,    /* Error from firewalld */
>+    VIR_FROM_DOMAIN_CHECKPOINT = 69,/* Error from domain checkpoint */

Missing space

>
> # ifdef VIR_ENUM_SENTINELS
>     VIR_ERR_DOMAIN_LAST

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190315/ad6089d7/attachment-0001.sig>


More information about the libvir-list mailing list