@@ -913,3 +913,9 @@ int blk_probe_geometry(BlockBackend *blk, HDGeometry *geo)
{
return bdrv_probe_geometry(blk->bs, geo);
}
+
+void blk_add_lock_unlock_notifier(BlockBackend *blk, Notifier *notifier)
+{
+ return bdrv_add_lock_unlock_notifier(blk->bs, notifier);
+}
+
@@ -168,5 +168,6 @@ int blk_save_vmstate(BlockBackend *blk, const uint8_t *buf,
int blk_load_vmstate(BlockBackend *blk, uint8_t *buf, int64_t pos, int size);
int blk_probe_blocksizes(BlockBackend *blk, BlockSizes *bsz);
int blk_probe_geometry(BlockBackend *blk, HDGeometry *geo);
+void blk_add_lock_unlock_notifier(BlockBackend *blk, Notifier *notifier);
#endif
Forward the call to bdrv_add_lock_unlock_notifier. Signed-off-by: Fam Zheng <famz@redhat.com> --- block/block-backend.c | 6 ++++++ include/sysemu/block-backend.h | 1 + 2 files changed, 7 insertions(+)