block/qapi: Include empty drives in query-blockstats
commitc21cc6ca989ebbeaed3e601ae4e521afbff5df54
authorKevin Wolf <kwolf@redhat.com>
Fri, 26 Feb 2016 20:16:38 +0000 (26 21:16 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 14 Mar 2016 15:46:42 +0000 (14 16:46 +0100)
tree331f75238a4cec25f621cef91a8afddc344e8764
parentb07363a1a38695e12fc888b490b6215358752e85
block/qapi: Include empty drives in query-blockstats

Since commit 5ec18f8c, query-blockstats didn't return the statistics of
drives without media any more because such drives have only a BB now,
but not a BDS any more.

This patch fixes the regression so that query-blockstats iterates over
BBs by default and empty drives are displayed again.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/qapi.c