qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 07/10] block/json: Add bdrv_get_specific_info()


From: Max Reitz
Subject: [Qemu-devel] [PATCH 07/10] block/json: Add bdrv_get_specific_info()
Date: Mon, 3 Mar 2014 16:28:50 +0100

Add a passthrough function for bdrv_get_specific_info().

Signed-off-by: Max Reitz <address@hidden>
---
 block/json.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/block/json.c b/block/json.c
index ce718e8..6aa0544 100644
--- a/block/json.c
+++ b/block/json.c
@@ -185,6 +185,11 @@ static int json_get_info(BlockDriverState *bs, 
BlockDriverInfo *bdi)
     return bdrv_get_info(bs->file, bdi);
 }
 
+static ImageInfoSpecific *json_get_specific_info(BlockDriverState *bs)
+{
+    return bdrv_get_specific_info(bs->file);
+}
+
 static BlockDriver bdrv_json = {
     .format_name                = "json",
     .protocol_name              = "json",
@@ -218,6 +223,7 @@ static BlockDriver bdrv_json = {
     .bdrv_has_zero_init         = json_has_zero_init,
     .bdrv_refresh_limits        = json_refresh_limits,
     .bdrv_get_info              = json_get_info,
+    .bdrv_get_specific_info     = json_get_specific_info,
 
     .authorizations             = { true, true },
 };
-- 
1.9.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]