diff options
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -6304,6 +6304,23 @@ BlockStatsSpecific *bdrv_get_specific_stats(BlockDriverState *bs) return drv->bdrv_get_specific_stats(bs); } +#ifdef CONFIG_BDRV_CLUSTER_INFO +int bdrv_get_cluster_info(BlockDriverState *bs, uint64_t offset) +{ + BlockDriver *drv = bs->drv; + + if (!drv) { + return -ENOMEDIUM; + } + + if (drv->bdrv_get_cluster_info) { + return drv->bdrv_get_cluster_info(bs, offset); + } + + return -ENOTSUP; +} +#endif + void bdrv_debug_event(BlockDriverState *bs, BlkdebugEvent event) { IO_CODE(); |