summaryrefslogtreecommitdiffstats
path: root/include/block/block_int-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/block/block_int-common.h')
-rw-r--r--include/block/block_int-common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/block/block_int-common.h b/include/block/block_int-common.h
index 31ae91e56e..2546500ab0 100644
--- a/include/block/block_int-common.h
+++ b/include/block/block_int-common.h
@@ -638,6 +638,14 @@ struct BlockDriver {
int coroutine_fn (*bdrv_co_pdiscard_snapshot)(BlockDriverState *bs,
int64_t offset, int64_t bytes);
+#ifdef CONFIG_BDRV_CLUSTER_INFO
+ /*
+ * Returns information about the mapping between the guest cluster
+ * and the host cluster for a specific guest block address.
+ */
+ int (*bdrv_get_cluster_info)(BlockDriverState *bs, uint64_t offset);
+#endif
+
/*
* Invalidate any cached meta-data.
*/