[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 10/12] block/raw_bsd: Add bdrv_get_specific_info(
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v2 10/12] block/raw_bsd: Add bdrv_get_specific_info() |
Date: |
Fri, 7 Mar 2014 23:55:54 +0100 |
Add a passthrough function for bdrv_get_specific_info().
Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Benoit Canet <address@hidden>
---
block/raw_bsd.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/block/raw_bsd.c b/block/raw_bsd.c
index 01ea692..e93ccd3 100644
--- a/block/raw_bsd.c
+++ b/block/raw_bsd.c
@@ -90,6 +90,11 @@ static int raw_get_info(BlockDriverState *bs,
BlockDriverInfo *bdi)
return bdrv_get_info(bs->file, bdi);
}
+static ImageInfoSpecific *raw_get_specific_info(BlockDriverState *bs)
+{
+ return bdrv_get_specific_info(bs->file);
+}
+
static int raw_refresh_limits(BlockDriverState *bs)
{
bs->bl = bs->file->bl;
@@ -187,6 +192,7 @@ static BlockDriver bdrv_raw = {
.bdrv_getlength = &raw_getlength,
.has_variable_length = true,
.bdrv_get_info = &raw_get_info,
+ .bdrv_get_specific_info = &raw_get_specific_info,
.bdrv_refresh_limits = &raw_refresh_limits,
.bdrv_is_inserted = &raw_is_inserted,
.bdrv_media_changed = &raw_media_changed,
--
1.9.0
- Re: [Qemu-devel] [PATCH v2 03/12] block: Add "has_single_child" field for drivers, (continued)
- [Qemu-devel] [PATCH v2 04/12] block/json: Add JSON protocol driver, Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 05/12] block/json: Add functions for cache control, Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 06/12] block/json: Add functions for writing zeroes etc., Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 07/12] block/json: Add bdrv_co_get_block_status(), Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 08/12] block/json: Add ioctl etc., Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 09/12] block/json: Add bdrv_get_specific_info(), Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 10/12] block/raw_bsd: Add bdrv_get_specific_info(),
Max Reitz <=
- [Qemu-devel] [PATCH v2 11/12] block/qapi: Ignore filters on top for format name, Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 12/12] iotests: Add test for the JSON protocol, Max Reitz, 2014/03/07
- Re: [Qemu-devel] [PATCH v2 00/12] block/json: Add JSON protocol driver, Max Reitz, 2014/03/21