]> git.ipfire.org Git - thirdparty/libvirt.git/commit
api: Allow keeping completed domain job stats when reading them
authorPeter Krempa <pkrempa@redhat.com>
Fri, 22 Nov 2019 12:23:31 +0000 (13:23 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Dec 2019 14:26:53 +0000 (15:26 +0100)
commitd4a4933a0de872edcbfed94fb334e8979ac2f68e
tree503f5d68a8b830549f979f6d1513c251f5c28e98
parent54a9d6e51e23f032053dea39c34c5dc91c0b2187
api: Allow keeping completed domain job stats when reading them

virDomainGetJobStats destroys the completed statistics on the first
read. Give the user possibility to keep them around if they wish so.

Add a flag VIR_DOMAIN_JOB_STATS_KEEP_COMPLETED which will read the stats
without destroying them.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
include/libvirt/libvirt-domain.h
src/libvirt-domain.c