[libvirt] [PATCH 06/12] getstats: start giving offline block stats

Peter Krempa pkrempa at redhat.com
Mon Dec 8 14:02:58 UTC 2014


On 12/06/14 09:14, Eric Blake wrote:
> I noticed that for an offline domain, 'virsh domstats --block $dom'
> was producing just the domain name, with no stats.  But the older
> 'virsh domblkinfo' works just fine on offline domains.  This patch
> starts to get us closer, by at least reporting the disk names for
> an offline domain.
> 
> With this patch, I now see the following for an offline domain
> with one qcow2 disk and an empty cdrom drive:
> $ virsh domstats --block foo
> Domain: 'foo'
>   block.count=2
>   block.0.name=hda
>   block.1.name=hdc
> 
> * src/qemu/qemu_driver.c (qemuDomainGetStatsBlock): Don't short-circuit
> output of block name.
> 
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
>  src/qemu/qemu_driver.c | 30 +++++++++++++++++-------------
>  1 file changed, 17 insertions(+), 13 deletions(-)
> 

ACK,

Peter


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20141208/264b9d27/attachment-0001.sig>


More information about the libvir-list mailing list