geometry: Add block-backend wrappers for geometry probing
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 4/6 geometry: Add block-backend wrappers for geometry probing
copying to mail list
-------- Forwarded Message --------
Subject: [PATCH v2 4/6] geometry: Add block-backend wrappers for geometry probing
Date: Tue, 18 Nov 2014 17:09:59 +0100
From: Ekaterina Tumanova <[email protected]>
To: [email protected], [email protected], [email protected], [email protected]
CC: [email protected], [email protected], [email protected], [email protected], Ekaterina Tumanova <[email protected]>
Signed-off-by Ekaterina Tumanova <[email protected]>
--- block/block-backend.c | 10 ++++++++++ include/sysemu/block-backend.h | 2 ++ 2 files changed, 12 insertions(+)
block/block-backend.c +10 -0
@@ -629,3 +629,13 @@ void *blk_aio_get(const AIOCBInfo *aiocb_info, BlockBackend *blk, {return qemu_aio_get (aiocb_info,blk_bs (blk), cb, opaque); } + +struct ProbeBlockSize blk_probe_blocksizes (BlockBackend *blk) +{ +return bdrv_probe_blocksizes (blk->bs); +} + +struct ProbeGeometry blk_probe_geometry (BlockBackend *blk) +{ +return bdrv_probe_geometry (blk->bs); +}
include/sysemu/block-backend.h +2 -0
@@ -138,5 +138,7 @@ BlockAcctStats *blk_get_stats(BlockBackend *blk);void *blk_aio_get (const AIOCBInfo *aiocb_info,BlockBackend *blk,BlockCompletionFunc *cb,void *opaque); +struct ProbeBlockSize blk_probe_blocksizes (BlockBackend *blk); +struct ProbeGeometry blk_probe_geometry (BlockBackend *blk);#endif
Signature · 1 line
1.8.5.5