[libvirt] [PATCH v2 08/12] getstats: report block sizes for offline domains
Eric Blake
eblake at redhat.com
Wed Dec 17 07:10:38 UTC 2014
On 12/16/2014 08:03 AM, Peter Krempa wrote:
> On 12/16/14 09:04, Eric Blake wrote:
>> The prior refactoring can now be put to use. With the same domain
>> as the previous commit (one qcow2 disk and an empty cdrom drive):
>> $ virsh domstats --block foo
>> Domain: 'foo'
>> block.count=2
>> block.0.name=hda
>> block.0.allocation=200704
>> block.0.capacity=42949672960
>> block.0.physical=200704
>> block.1.name=hdc
>>
>> * src/qemu/qemu_driver.c (qemuStorageLimitsRefresh): Tweak
>> semantics of helper function.
This was actually simplified in earlier patches, and no longer needed
tweaking.
>> (qemuDomainGetStatsBlock): Use it to report offline statistics.
>>
>> Signed-off-by: Eric Blake <eblake at redhat.com>
>> ---
>> src/qemu/qemu_driver.c | 18 ++++++++++++++++--
>> 1 file changed, 16 insertions(+), 2 deletions(-)
>>
>
> ACK,
Will push shortly, after updating the commit message to be accurate (I
originally wrote it before block.0.path was implemented, but rebasing
let that addition go in earlier).
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20141217/f6d5c860/attachment-0001.sig>
More information about the libvir-list
mailing list