mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
API: Add VIR_DOMAIN_JOB_ERRMSG domain job statistics field
In some cases it's useful to report the error which caused the domain job to fail. Add an optional field for holding the error message so that it can be later retrieved from statistics of a completed job. Add the field name macro and code for extracting it in virsh. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
@@ -3612,6 +3612,15 @@ typedef enum {
|
||||
*/
|
||||
# define VIR_DOMAIN_JOB_SUCCESS "success"
|
||||
|
||||
/**
|
||||
* VIR_DOMAIN_JOB_ERRMSG:
|
||||
*
|
||||
* virDomainGetJobStats field: Present only in statistics for a completed job.
|
||||
* Optional error message for a failed job.
|
||||
*/
|
||||
# define VIR_DOMAIN_JOB_ERRMSG "errmsg"
|
||||
|
||||
|
||||
/**
|
||||
* VIR_DOMAIN_JOB_DISK_TEMP_USED:
|
||||
* virDomainGetJobStats field: current usage of temporary disk space for the
|
||||
|
||||
Reference in New Issue
Block a user