]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: backup: Implement stats gathering while the job is running
authorPeter Krempa <pkrempa@redhat.com>
Tue, 26 Nov 2019 17:25:49 +0000 (18:25 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 10 Dec 2019 11:41:58 +0000 (12:41 +0100)
commit5ea6cec9effca3109b66708a87bd8a37cf39aaca
tree23155c79ba74ba43cfe24165b42e1c89b56a13c7
parenta1521f84a532a4d3e9b23a648f73258f5e48cd6c
qemu: backup: Implement stats gathering while the job is running

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@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_backup.c
src/qemu/qemu_backup.h
src/qemu/qemu_driver.c