]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
error: Introduce VIR_ERR_CHECKPOINT_INCONSISTENT error code
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Nov 2020 10:57:58 +0000 (11:57 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 9 Nov 2020 11:25:49 +0000 (12:25 +0100)
This code will be used to signal cases when the checkpoint is broken
either during backup or other operations where a user might want to make
decision based on the presence of the checkpoint, such as do a full
backup instead of an incremental one.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
include/libvirt/virterror.h
src/util/virerror.c

index 0f1c32283dc26393d0e8ff0475f06372a86a8d6a..b96fe250aae6e1bd1e252b773abc32e4924dbcb7 100644 (file)
@@ -332,6 +332,7 @@ typedef enum {
     VIR_ERR_NETWORK_PORT_EXIST = 106,   /* the network port already exist */
     VIR_ERR_NO_NETWORK_PORT = 107,      /* network port not found */
     VIR_ERR_NO_HOSTNAME = 108,          /* no domain's hostname found */
+    VIR_ERR_CHECKPOINT_INCONSISTENT = 109, /* checkpoint can't be used */
 
 # ifdef VIR_ENUM_SENTINELS
     VIR_ERR_NUMBER_LAST
index 80a7cfe0ede333c64c5eb7069457049b52096320..9e3bad97eba44e4e7319f286aa4e33c5e28407ed 100644 (file)
@@ -1227,6 +1227,10 @@ static const virErrorMsgTuple virErrorMsgStrings[] = {
     [VIR_ERR_NO_HOSTNAME] = {
         N_("no hostname found"),
         N_("no hostname found: %s") },
+    [VIR_ERR_CHECKPOINT_INCONSISTENT] = {
+        N_("checkpoint inconsistent"),
+        N_("checkpoint inconsistent: %s")
+    },
 };
 
 G_STATIC_ASSERT(G_N_ELEMENTS(virErrorMsgStrings) == VIR_ERR_NUMBER_LAST);