diff options
author | Fam Zheng | 2014-10-31 04:32:57 +0100 |
---|---|---|
committer | Kevin Wolf | 2014-12-10 10:25:29 +0100 |
commit | f71eaa74c0bf2cf9da9a00b571d4b8162c61e29d (patch) | |
tree | ca8da0be2d7255cce7c8af92a2b42b614315bb0b /qapi | |
parent | block: Include "node-name" if present in query-blockstats (diff) | |
download | qemu-f71eaa74c0bf2cf9da9a00b571d4b8162c61e29d.tar.gz qemu-f71eaa74c0bf2cf9da9a00b571d4b8162c61e29d.tar.xz qemu-f71eaa74c0bf2cf9da9a00b571d4b8162c61e29d.zip |
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 'qapi')
-rw-r--r-- | qapi/block-core.json | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json index de1bd45564..8e51e78e1b 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -427,11 +427,20 @@ # # Query the @BlockStats for all virtual block devices. # +# @query-nodes: #optional If true, the command will query all the block nodes +# that have a node name, in a list which will include "parent" +# information, but not "backing". +# If false or omitted, the behavior is as before - query all the +# device backends, recursively including their "parent" and +# "backing". (Since 2.3) +# # Returns: A list of @BlockStats for each virtual block devices. # # Since: 0.14.0 ## -{ 'command': 'query-blockstats', 'returns': ['BlockStats'] } +{ 'command': 'query-blockstats', + 'data': { '*query-nodes': 'bool' }, + 'returns': ['BlockStats'] } ## # @BlockdevOnError: |