getstats: report block sizes for offline domains
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 <a9da18479c871fe903d9590822cfe2629c6a4d11@redhat.com>

shugaoye/libvirt,jardasgit/libvirt,crobinso/libvirt,datto/libvirt,agx/libvirt,taget/libvirt,libvirt/libvirt,nertpinx/libvirt,andreabolognani/libvirt,olafhering/libvirt,shugaoye/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,libvirt/libvirt,agx/libvirt,nertpinx/libvirt,jfehlig/libvirt,eskultety/libvirt,jardasgit/libvirt,jardasgit/libvirt,jardasgit/libvirt,shugaoye/libvirt,eskultety/libvirt,zippy2/libvirt,jfehlig/libvirt,elmarco/libvirt,elmarco/libvirt,rlaager/libvirt,zippy2/libvirt,elmarco/libvirt,nertpinx/libvirt,datto/libvirt,taget/libvirt,agx/libvirt,andreabolognani/libvirt,jardasgit/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,olafhering/libvirt,crobinso/libvirt,VenkatDatta/libvirt,taget/libvirt,olafhering/libvirt,eskultety/libvirt,rlaager/libvirt,rlaager/libvirt,taget/libvirt,fabianfreyer/libvirt,shugaoye/libvirt,rlaager/libvirt,fabianfreyer/libvirt,rlaager/libvirt,olafhering/libvirt,nertpinx/libvirt,eskultety/libvirt,zippy2/libvirt,zippy2/libvirt,andreabolognani/libvirt,crobinso/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,jfehlig/libvirt,crobinso/libvirt,datto/libvirt,eskultety/libvirt,VenkatDatta/libvirt,elmarco/libvirt,libvirt/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,taget/libvirt,libvirt/libvirt,datto/libvirt,VenkatDatta/libvirt,elmarco/libvirt,agx/libvirt,agx/libvirt,datto/libvirt