From 5d3b4e99463642b226d1a37433d0e4b376162468 Mon Sep 17 00:00:00 2001 From: Vladimir Sementsov-Ogievskiy Date: Fri, 21 Dec 2018 20:09:07 +0300 Subject: qapi: add x-debug-query-block-graph Add a new command, returning block nodes (and their users) graph. Signed-off-by: Vladimir Sementsov-Ogievskiy Message-id: 20181221170909.25584-2-vsementsov@virtuozzo.com Signed-off-by: Max Reitz --- block/block-backend.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'block') diff --git a/block/block-backend.c b/block/block-backend.c index 60d37a0..cf05abd 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -2249,3 +2249,8 @@ int coroutine_fn blk_co_copy_range(BlockBackend *blk_in, int64_t off_in, blk_out->root, off_out, bytes, read_flags, write_flags); } + +const BdrvChild *blk_root(BlockBackend *blk) +{ + return blk->root; +} -- cgit v1.1