[libvirt] [PATCH v2 11/25] qemu: Add infrastructure for statistics of a backup job

Eric Blake eblake at redhat.com
Wed Dec 4 20:45:12 UTC 2019


On 12/3/19 11:17 AM, Peter Krempa wrote:
> Introduce QEMU_DOMAIN_JOB_STATS_TYPE_BACKUP and the convertors and other
> plumbing to be able to report statistics for the backup job.
> 
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
>   src/qemu/qemu_domain.c | 62 ++++++++++++++++++++++++++++++++++++++++++
>   src/qemu/qemu_domain.h | 10 +++++++
>   src/qemu/qemu_driver.c |  4 +++
>   3 files changed, 76 insertions(+)
> 

> +++ b/src/qemu/qemu_driver.c
> @@ -13905,6 +13905,10 @@ qemuDomainGetJobStatsInternal(virQEMUDriverPtr driver,
>               goto cleanup;
>           break;
> 
> +    case QEMU_DOMAIN_JOB_STATS_TYPE_BACKUP:
> +        /* TODO implement for backup job */
> +        break;

The TODO goes away later in the series.

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