Skip to content

Commit

Permalink
block/raw: add .bdrv_get_info
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  • Loading branch information
plieven authored and stefanhaRH committed Jul 19, 2013
1 parent 4e7395e commit a23fdf3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions block/raw.c
Expand Up @@ -121,6 +121,11 @@ static int raw_has_zero_init(BlockDriverState *bs)
return bdrv_has_zero_init(bs->file);
}

static int raw_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)
{
return bdrv_get_info(bs->file, bdi);
}

static BlockDriver bdrv_raw = {
.format_name = "raw",

Expand All @@ -140,6 +145,7 @@ static BlockDriver bdrv_raw = {

.bdrv_probe = raw_probe,
.bdrv_getlength = raw_getlength,
.bdrv_get_info = raw_get_info,
.bdrv_truncate = raw_truncate,

.bdrv_is_inserted = raw_is_inserted,
Expand Down

0 comments on commit a23fdf3

Please sign in to comment.