[libvirt] [PATCH 04/11] qemu: report highest offset into block stats
Eric Blake
eblake at redhat.com
Tue Sep 2 22:42:32 UTC 2014
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 at 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
-------------- 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/20140902/9dba5958/attachment-0001.sig>
More information about the libvir-list
mailing list