summaryrefslogtreecommitdiff
path: root/block/qapi.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2013-10-09 10:46:16 +0200
committerKevin Wolf <kwolf@redhat.com>2013-10-11 10:52:54 +0200
commiteae041fe6f4314962e873615134eefb32cf8ba61 (patch)
tree669c134a3beade6ff5d9fb897a81630c449bae9d /block/qapi.c
parentf2bb8a8a47597634b74c161c44b9980c7f4e50ac (diff)
block: Add bdrv_get_specific_info
Add a function for retrieving an ImageInfoSpecific object from a block driver. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qapi.c')
-rw-r--r--block/qapi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/block/qapi.c b/block/qapi.c
index 782051c65d..ab1dd24b76 100644
--- a/block/qapi.c
+++ b/block/qapi.c
@@ -134,6 +134,9 @@ void bdrv_query_image_info(BlockDriverState *bs,
info->dirty_flag = bdi.is_dirty;
info->has_dirty_flag = true;
}
+ info->format_specific = bdrv_get_specific_info(bs);
+ info->has_format_specific = info->format_specific != NULL;
+
backing_filename = bs->backing_file;
if (backing_filename[0] != '\0') {
info->backing_filename = g_strdup(backing_filename);