summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorPeter Lieven <pl@kamp.de>2013-07-15 12:49:34 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2013-07-19 15:27:37 +0800
commita23fdf355969d331f60593fa5b857d43aec25aac (patch)
treeecd9c56c208e4d297fe79e2f9f85e4b29851abec /block
parent4e7395e84fc7534f6a6c6f3d5563e770501dbe2e (diff)
downloadqemu-a23fdf355969d331f60593fa5b857d43aec25aac.tar.gz
qemu-a23fdf355969d331f60593fa5b857d43aec25aac.tar.bz2
qemu-a23fdf355969d331f60593fa5b857d43aec25aac.zip
block/raw: add .bdrv_get_info
Signed-off-by: Peter Lieven <pl@kamp.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/raw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/block/raw.c b/block/raw.c
index 8c81de9345..f1682d4f32 100644
--- a/block/raw.c
+++ b/block/raw.c
@@ -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",
@@ -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,