From e8eb8637786635e73df3da3d24aff0e01d48fa51 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Wed, 21 Feb 2018 11:47:43 +0100 Subject: block: Make bdrv_is_whitelisted() public We'll use a separate source file for image creation, and we need to check there whether the requested driver is whitelisted. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz Reviewed-by: Eric Blake --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'block.c') diff --git a/block.c b/block.c index 4fc65f7621..00f94241fc 100644 --- a/block.c +++ b/block.c @@ -370,7 +370,7 @@ BlockDriver *bdrv_find_format(const char *format_name) return bdrv_do_find_format(format_name); } -static int bdrv_is_whitelisted(BlockDriver *drv, bool read_only) +int bdrv_is_whitelisted(BlockDriver *drv, bool read_only) { static const char *whitelist_rw[] = { CONFIG_BDRV_RW_WHITELIST -- cgit v1.2.1