]> xenbits.xensource.com Git - libvirt.git/commit
getstats: report block sizes for offline domains
authorEric Blake <eblake@redhat.com>
Sat, 6 Dec 2014 06:01:05 +0000 (23:01 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 17 Dec 2014 07:20:21 +0000 (00:20 -0700)
commit596a13713420e01b20ce3dc3fdbe06d073682675
tree7c8dba41d61c8c1fa640a1346db5c77c012f70a2
parent8de6544e98992cf8203b9e246409451e1583dbbe
getstats: report block sizes for offline domains

The prior refactoring can now be put to use. With the same domain
as the earlier commit 7b49926 (one qcow2 disk and an empty
cdrom drive):
$ virsh domstats --block foo
Domain: 'foo'
  block.count=2
  block.0.name=hda
  block.0.path=/var/lib/libvirt/images/foo.qcow2
  block.0.allocation=1309614080
  block.0.capacity=42949672960
  block.0.physical=1309671424
  block.1.name=hdc

* src/qemu/qemu_driver.c (qemuDomainGetStatsBlock): Use
qemuStorageLimitsRefresh to report offline statistics.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_driver.c