On Tue, Dec 03, 2019 at 06:17:43PM +0100, Peter Krempa wrote:
We can use the output of 'query-jobs' to figure out some
useful
information about a backup job. That is progress in case of a push job
and scratch file use in case of a pull job.
Add a worker which will total up the data and call it from
qemuDomainGetJobStatsInternal.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_backup.c | 98 ++++++++++++++++++++++++++++++++++++++++++
src/qemu/qemu_backup.h | 5 +++
src/qemu/qemu_driver.c | 3 +-
3 files changed, 105 insertions(+), 1 deletion(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano