Now that we have bdrv_query_image_info, rename this function to make it more obvious what it is doing.
Reviewed-by: Eric Blake <ebl...@redhat.com> Signed-off-by: Wenchao Xia <xiaw...@linux.vnet.ibm.com> --- block.c | 4 ++-- include/block/block.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block.c b/block.c index 4d87eec..0a06d1e 100644 --- a/block.c +++ b/block.c @@ -2878,7 +2878,7 @@ int bdrv_is_allocated_above(BlockDriverState *top, BlockDriverState *base, return data.ret; } -BlockInfo *bdrv_query_info(BlockDriverState *bs) +BlockInfo *bdrv_query_block_info(BlockDriverState *bs) { BlockInfo *info = g_malloc0(sizeof(*info)); info->device = g_strdup(bs->device_name); @@ -2945,7 +2945,7 @@ BlockInfoList *qmp_query_block(Error **errp) QTAILQ_FOREACH(bs, &bdrv_states, list) { BlockInfoList *info = g_malloc0(sizeof(*info)); - info->value = bdrv_query_info(bs); + info->value = bdrv_query_block_info(bs); *p_next = info; p_next = &info->next; diff --git a/include/block/block.h b/include/block/block.h index df61beb..5dbbaef 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -314,7 +314,7 @@ void bdrv_get_backing_filename(BlockDriverState *bs, char *filename, int filename_size); void bdrv_get_full_backing_filename(BlockDriverState *bs, char *dest, size_t sz); -BlockInfo *bdrv_query_info(BlockDriverState *s); +BlockInfo *bdrv_query_block_info(BlockDriverState *s); BlockStats *bdrv_query_stats(const BlockDriverState *bs); BlockDriverState *bdrv_snapshots(void); -- 1.7.1