[PATCH 3/5] API: Add VIR_DOMAIN_JOB_ERRMSG domain job statistics field

Eric Blake eblake at redhat.com
Thu Apr 23 15:46:43 UTC 2020


On 4/16/20 4:55 AM, Peter Krempa wrote:
> 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 at redhat.com>
> ---
>   include/libvirt/libvirt-domain.h | 9 +++++++++
>   tools/virsh-domain.c             | 8 ++++++++
>   2 files changed, 17 insertions(+)
> 

Reviewed-by: Eric Blake <eblake at redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




More information about the libvir-list mailing list