mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
API: Introduce field for reporting temporary disk space usage of a domain job
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>
This commit is contained in:
parent
1e320c9d83
commit
2a2f26d321
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user