]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Don't overwrite stats in qemuDomainBlocksStatsGather
authorPeter Krempa <pkrempa@redhat.com>
Thu, 30 Aug 2018 08:30:09 +0000 (10:30 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 4 Sep 2018 06:11:09 +0000 (08:11 +0200)
commit2f6ff0da5bc1b1f863901228f7110a6ae54df4f2
tree6e462fd7b869355e4dbf29124a38e5696f6e492b
parent44f82ec276148c5083f6d91de5bbb29eba6b718c
qemu: Don't overwrite stats in qemuDomainBlocksStatsGather

The size/capacity stats gathered in qemuDomainBlocksStatsGather when
using -blockdev would be overwritten by assigning/copying the transfered
data statistics at the end. Fix it by moving the assignment prior to
fetching the capacity data.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c