Skip to content

Commit

Permalink
block: Remove bdrv_query_block_node_info
Browse files Browse the repository at this point in the history
The last call site of this function has been removed by commit
c04d0ab ("qemu-img: Let info print block graph").

Reviewed-by: Claudio Fontana <cfontana@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20230901184605.32260-2-farosas@suse.de>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
  • Loading branch information
Fabiano Rosas authored and kevmw committed Sep 8, 2023
1 parent a8d99c0 commit be2e51c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
27 changes: 0 additions & 27 deletions block/qapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,33 +309,6 @@ static void bdrv_do_query_node_info(BlockDriverState *bs,
aio_context_release(bdrv_get_aio_context(bs));
}

/**
* bdrv_query_block_node_info:
* @bs: block node to examine
* @p_info: location to store node information
* @errp: location to store error information
*
* Store image information about @bs in @p_info.
*
* @p_info will be set only on success. On error, store error in @errp.
*/
void bdrv_query_block_node_info(BlockDriverState *bs,
BlockNodeInfo **p_info,
Error **errp)
{
BlockNodeInfo *info;
ERRP_GUARD();

info = g_new0(BlockNodeInfo, 1);
bdrv_do_query_node_info(bs, info, errp);
if (*errp) {
qapi_free_BlockNodeInfo(info);
return;
}

*p_info = info;
}

/**
* bdrv_query_image_info:
* @bs: block node to examine
Expand Down
3 changes: 0 additions & 3 deletions include/block/qapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ BlockDeviceInfo *bdrv_block_device_info(BlockBackend *blk,
int bdrv_query_snapshot_info_list(BlockDriverState *bs,
SnapshotInfoList **p_list,
Error **errp);
void bdrv_query_block_node_info(BlockDriverState *bs,
BlockNodeInfo **p_info,
Error **errp);
void bdrv_query_image_info(BlockDriverState *bs,
ImageInfo **p_info,
bool flat,
Expand Down

0 comments on commit be2e51c

Please sign in to comment.