We will need it in block/block-backend.c. Signed-off-by: Max Reitz <mre...@redhat.com> --- 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 ca6a587..d4a3c79 100644 --- a/block.c +++ b/block.c @@ -1948,7 +1948,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 9842655..262b635 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -428,6 +428,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