The Monday 03 Mar 2014 à 16:28:51 (+0100), Max Reitz wrote :
> Add a passthrough function for bdrv_get_specific_info().
>
> Signed-off-by: Max Reitz <mre...@redhat.com>
> ---
> 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
>
>
Reviewed-by: Benoit Canet <ben...@irqsave.net>