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(a)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(a)redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization:
qemu.org |
libvirt.org