summaryrefslogtreecommitdiffstats
path: root/hmp.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-10-31 11:32:57 +0800
committerKevin Wolf <kwolf@redhat.com>2014-12-10 10:25:29 +0100
commitf71eaa74c0bf2cf9da9a00b571d4b8162c61e29d (patch)
treeca8da0be2d7255cce7c8af92a2b42b614315bb0b /hmp.c
parent4875a77950811631c26e156592e8b8df22208085 (diff)
downloadhqemu-f71eaa74c0bf2cf9da9a00b571d4b8162c61e29d.zip
hqemu-f71eaa74c0bf2cf9da9a00b571d4b8162c61e29d.tar.gz
qmp: Add optional switch "query-nodes" in query-blockstats
This bool option will allow query all the node names. It iterates all the BDSes that are assigned a name, also in this case don't query up the backing chain. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hmp.c b/hmp.c
index 63d7686..94b27df 100644
--- a/hmp.c
+++ b/hmp.c
@@ -403,7 +403,7 @@ void hmp_info_blockstats(Monitor *mon, const QDict *qdict)
{
BlockStatsList *stats_list, *stats;
- stats_list = qmp_query_blockstats(NULL);
+ stats_list = qmp_query_blockstats(false, false, NULL);
for (stats = stats_list; stats; stats = stats->next) {
if (!stats->value->has_device) {
OpenPOWER on IntegriCloud