We will need it in block/block-backend.c.
Signed-off-by: Max Reitz <[email protected]>
---
block.c | 2 +-
include/block/block_int.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/block.c b/block.c
index e479042..b81f91d 100644
--- a/block.c
+++ b/block.c
@@ -1966,7 +1966,7 @@ static bool bdrv_requests_pending(BlockDriverState *bs)
return false;
}
-static bool bdrv_drain_one(BlockDriverState *bs)
+bool bdrv_drain_one(BlockDriverState *bs)
{
bool bs_busy;
diff --git a/include/block/block_int.h b/include/block/block_int.h
index 1b01f45..d839a8a 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -447,6 +447,8 @@ BlockDriver *bdrv_probe_all(const uint8_t *buf, int
buf_size,
void bdrv_set_io_limits(BlockDriverState *bs,
ThrottleConfig *cfg);
+bool bdrv_drain_one(BlockDriverState *bs);
+
/**
* bdrv_add_before_write_notifier:
--
2.1.0