summaryrefslogtreecommitdiffstats
path: root/include/block/qapi.h
diff options
context:
space:
mode:
authorPeter Krempa2020-01-20 09:50:49 +0100
committerMax Reitz2020-02-20 16:43:42 +0100
commitfacda5443f5a8676fb635b82ac1046ac6b6a67ce (patch)
tree4309b8f137bf448d3ee569befa64b63d0e1b1f81 /include/block/qapi.h
parentiotests/147: Fix drive parameters (diff)
downloadqemu-facda5443f5a8676fb635b82ac1046ac6b6a67ce.tar.gz
qemu-facda5443f5a8676fb635b82ac1046ac6b6a67ce.tar.xz
qemu-facda5443f5a8676fb635b82ac1046ac6b6a67ce.zip
qapi: Allow getting flat output from 'query-named-block-nodes'
When a management application manages node names there's no reason to recurse into backing images in the output of query-named-block-nodes. Add a parameter to the command which will return just the top level structs. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Message-Id: <4470f8c779abc404dcf65e375db195cd91a80651.1579509782.git.pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> [mreitz: Fixed coding style] Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block/qapi.h')
-rw-r--r--include/block/qapi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/block/qapi.h b/include/block/qapi.h
index cd9410dee3..22c7807c89 100644
--- a/include/block/qapi.h
+++ b/include/block/qapi.h
@@ -29,7 +29,9 @@
#include "block/snapshot.h"
BlockDeviceInfo *bdrv_block_device_info(BlockBackend *blk,
- BlockDriverState *bs, Error **errp);
+ BlockDriverState *bs,
+ bool flat,
+ Error **errp);
int bdrv_query_snapshot_info_list(BlockDriverState *bs,
SnapshotInfoList **p_list,
Error **errp);