From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQIGo-0007PG-2s for qemu-devel@nongnu.org; Tue, 24 Feb 2015 11:23:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQIGi-0006sh-Ty for qemu-devel@nongnu.org; Tue, 24 Feb 2015 11:23:37 -0500 From: Max Reitz Date: Tue, 24 Feb 2015 11:23:18 -0500 Message-Id: <1424795000-26494-8-git-send-email-mreitz@redhat.com> In-Reply-To: <1424795000-26494-1-git-send-email-mreitz@redhat.com> References: <1424795000-26494-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 7/9] block: Make bdrv_drain_one() public List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org, qemu-devel@nongnu.org Cc: Kevin Wolf , Markus Armbruster , Stefan Hajnoczi , Max Reitz We will need it in block/block-backend.c. Signed-off-by: Max Reitz --- 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