Signed-off-by: Ekaterina Tumanova <tuman...@linux.vnet.ibm.com> Reviewed-by: Markus Armbruster <arm...@redhat.com> --- block/block-backend.c | 10 ++++++++++ include/sysemu/block-backend.h | 2 ++ 2 files changed, 12 insertions(+)
diff --git a/block/block-backend.c b/block/block-backend.c index ef16d73..4b9ed85 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -667,3 +667,13 @@ void *blk_aio_get(const AIOCBInfo *aiocb_info, BlockBackend *blk, { return qemu_aio_get(aiocb_info, blk_bs(blk), cb, opaque); } + +void blk_probe_blocksizes(BlockBackend *blk, BlockSizes *bsz) +{ + bdrv_probe_blocksizes(blk->bs, bsz); +} + +int blk_probe_geometry(BlockBackend *blk, HDGeometry *geo) +{ + return bdrv_probe_geometry(blk->bs, geo); +} diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index 8871a02..aecdc53 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -150,5 +150,7 @@ BlockAcctStats *blk_get_stats(BlockBackend *blk); void *blk_aio_get(const AIOCBInfo *aiocb_info, BlockBackend *blk, BlockCompletionFunc *cb, void *opaque); +void blk_probe_blocksizes(BlockBackend *blk, BlockSizes *bsz); +int blk_probe_geometry(BlockBackend *blk, HDGeometry *geo); #endif -- 1.8.5.5