]> xenbits.xensource.com Git - libvirt.git/commitdiff
API: Introduce field for reporting temporary disk space usage of a domain job
authorPeter Krempa <pkrempa@redhat.com>
Mon, 25 Nov 2019 16:19:48 +0000 (17:19 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 10 Dec 2019 11:41:56 +0000 (12:41 +0100)
A pull mode backup job uses temporary disk images to hold the changed
parts of the disk while the client is copying the changes. Since usage
of the temporary space can be monitored but doesn't really fit any of
the existing stats fields introduce new fields for reporting this data.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
include/libvirt/libvirt-domain.h

index a099b3d891c5868a3a987d5b1fb445703086c6d2..949476a497ac57f2659b93c92109e67b47efcd79 100644 (file)
@@ -3600,6 +3600,20 @@ typedef enum {
  */
 # define VIR_DOMAIN_JOB_SUCCESS "success"
 
+/**
+ * VIR_DOMAIN_JOB_DISK_TEMP_USED:
+ * virDomainGetJobStats field: current usage of temporary disk space for the
+ * job in bytes as VIR_TYPED_PARAM_ULLONG.
+ */
+# define VIR_DOMAIN_JOB_DISK_TEMP_USED "disk_temp_used"
+
+/**
+ * VIR_DOMAIN_JOB_DISK_TEMP_TOTAL:
+ * virDomainGetJobStats field: possible total temporary disk space for the
+ * job in bytes as VIR_TYPED_PARAM_ULLONG.
+ */
+# define VIR_DOMAIN_JOB_DISK_TEMP_TOTAL "disk_temp_total"
+
 /**
  * virConnectDomainEventGenericCallback:
  * @conn: the connection pointer