aboutsummaryrefslogtreecommitdiff
path: root/include/block
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2018-02-21 11:47:43 +0100
committerKevin Wolf <kwolf@redhat.com>2018-03-09 15:17:47 +0100
commite8eb8637786635e73df3da3d24aff0e01d48fa51 (patch)
tree6dfc618581b9515aae7e210ba7840b4a61047743 /include/block
parentb76b4f604521e59f857d6177bc55f6f2e41fd392 (diff)
downloadqemu-e8eb8637786635e73df3da3d24aff0e01d48fa51.zip
qemu-e8eb8637786635e73df3da3d24aff0e01d48fa51.tar.gz
qemu-e8eb8637786635e73df3da3d24aff0e01d48fa51.tar.bz2
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 <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 7805187..cdec363 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -226,6 +226,7 @@ char *bdrv_perm_names(uint64_t perm);
void bdrv_init(void);
void bdrv_init_with_whitelist(void);
bool bdrv_uses_whitelist(void);
+int bdrv_is_whitelisted(BlockDriver *drv, bool read_only);
BlockDriver *bdrv_find_protocol(const char *filename,
bool allow_protocol_prefix,
Error **errp);