diff options
Diffstat (limited to 'block/qapi.c')
-rw-r--r-- | block/qapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/qapi.c b/block/qapi.c index a32cb79..98b1b83 100644 --- a/block/qapi.c +++ b/block/qapi.c @@ -318,6 +318,11 @@ BlockStats *bdrv_query_stats(const BlockDriverState *bs) s->parent = bdrv_query_stats(bs->file); } + if (bs->backing_hd) { + s->has_backing = true; + s->backing = bdrv_query_stats(bs->backing_hd); + } + return s; } |