Skip to content

Commit

Permalink
Fix docs for block stats monitor command
Browse files Browse the repository at this point in the history
The 'parent' field in the 'query-blockstats' monitor command is
part of the top level block device QDict, not part of the 2nd
level 'stats' QDict.

* block.c: Fix docs for 'parent' field in block stats monitor
  command output

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
  • Loading branch information
berrange authored and kevmw committed May 17, 2010
1 parent af47459 commit 2195513
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions block.c
Original file line number Diff line number Diff line change
Expand Up @@ -1582,9 +1582,9 @@ static QObject* bdrv_info_stats_bs(BlockDriverState *bs)
* - "wr_operations": write operations
* - "wr_highest_offset": Highest offset of a sector written since the
* BlockDriverState has been opened
* - "parent": Contains recursively the statistics of the underlying
* protocol (e.g. the host file for a qcow2 image). If there is no
* underlying protocol, this field is omitted.
* - "parent": A QDict recursively holding the statistics of the underlying
* protocol (e.g. the host file for a qcow2 image). If there is no
* underlying protocol, this field is omitted.
*
* Example:
*
Expand All @@ -1593,15 +1593,14 @@ static QObject* bdrv_info_stats_bs(BlockDriverState *bs)
* "wr_bytes": 0,
* "rd_operations": 1,
* "wr_operations": 0,
* "wr_highest_offset": 0,
* "parent": {
* "stats": { "rd_bytes": 1024,
* "wr_bytes": 0,
* "rd_operations": 2,
* "wr_operations": 0,
* "wr_highest_offset": 0,
* }
* } } },
* "wr_highest_offset": 0 },
* "parent": {
* "stats": { "rd_bytes": 1024,
* "wr_bytes": 0,
* "rd_operations": 2,
* "wr_operations": 0,
* "wr_highest_offset": 0,
* } } },
* { "device": "ide1-cd0",
* "stats": { "rd_bytes": 0,
* "wr_bytes": 0,
Expand Down

0 comments on commit 2195513

Please sign in to comment.