diff options
author | Max Reitz | 2020-05-13 13:05:41 +0200 |
---|---|---|
committer | Kevin Wolf | 2020-05-18 19:05:25 +0200 |
commit | 9aab945e9cad484d668dbd26b023261223a4b02f (patch) | |
tree | 3ffb12fb3918ee6c93ed528b8e5d10066b63ff55 /include/block | |
parent | block: Make bdrv_filter_default_perms() static (diff) | |
download | qemu-9aab945e9cad484d668dbd26b023261223a4b02f.tar.gz qemu-9aab945e9cad484d668dbd26b023261223a4b02f.tar.xz qemu-9aab945e9cad484d668dbd26b023261223a4b02f.zip |
block: Drop bdrv_format_default_perms()
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200513110544.176672-32-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/block_int.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index 6fc5f0d333..e791c40496 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -1262,17 +1262,6 @@ int bdrv_child_try_set_perm(BdrvChild *c, uint64_t perm, uint64_t shared, */ int bdrv_child_refresh_perms(BlockDriverState *bs, BdrvChild *c, Error **errp); -/* Default implementation for BlockDriver.bdrv_child_perm() that can be used by - * (non-raw) image formats: Like above for bs->backing, but for bs->file it - * requires WRITE | RESIZE for read-write images, always requires - * CONSISTENT_READ and doesn't share WRITE. */ -void bdrv_format_default_perms(BlockDriverState *bs, BdrvChild *c, - const BdrvChildClass *child_class, - BdrvChildRole child_role, - BlockReopenQueue *reopen_queue, - uint64_t perm, uint64_t shared, - uint64_t *nperm, uint64_t *nshared); - bool bdrv_recurse_can_replace(BlockDriverState *bs, BlockDriverState *to_replace); |