[libvirt] [PATCH v2 18/25] conf: backup: Add fields for tracking stats of completed sub-jobs

Peter Krempa pkrempa at redhat.com
Tue Dec 3 17:17:40 UTC 2019


We need a place to store stats of completed sub-jobs so that we can
later report accurate stats.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/conf/backup_conf.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/conf/backup_conf.h b/src/conf/backup_conf.h
index c970e01920..5dfc42e297 100644
--- a/src/conf/backup_conf.h
+++ b/src/conf/backup_conf.h
@@ -70,6 +70,13 @@ struct _virDomainBackupDef {

     size_t ndisks; /* should not exceed dom->ndisks */
     virDomainBackupDiskDef *disks;
+
+    /* internal data */
+    /* statistic totals for completed diks */
+    unsigned long long push_transferred;
+    unsigned long long push_total;
+    unsigned long long pull_tmp_used;
+    unsigned long long pull_tmp_total;
 };

 typedef enum {
-- 
2.23.0




More information about the libvir-list mailing list