Re: [PATCH 04/11] qemu: report highest offset into block stats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/02/2014 06:31 AM, Francesco Romani wrote:
> This patch adds the reporting of the highest
> block stats written to the block stats.
> 
> This information was already there since the
> beginning, and doing so we gain the information
> provided by GetBlockInfo without entering the
> monitor again.
> 
> Signed-off-by: Francesco Romani <fromani@xxxxxxxxxx>
> ---
>  src/qemu/qemu_monitor.h      | 1 +
>  src/qemu/qemu_monitor_json.c | 7 +++++++
>  2 files changed, 8 insertions(+)
> 

> +++ b/src/qemu/qemu_monitor_json.c
> @@ -1880,6 +1880,13 @@ int qemuMonitorJSONGetAllBlockStatsInfo(qemuMonitorPtr mon,
>                             "flush_total_time_ns");
>              goto cleanup;
>          }
> +        if (virJSONValueObjectGetNumberUlong(stats, "wr_highest_offset", &blockstats->wr_highest_offset) < 0) {

Long line; wrap at 80 columns.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]