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

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



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 redhat com>
> ---
>  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


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