summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorKevin Wolf2020-03-10 12:38:25 +0100
committerKevin Wolf2020-03-11 15:54:38 +0100
commitc7a0f2be8f95b220cdadbba9a9236eaf115951dc (patch)
tree54654e1ff4edf1ea5a44cb43c95d1d8e86d5fa76 /include/block
parentqom-qmp-cmds: fix two memleaks in qmp_object_add (diff)
downloadqemu-c7a0f2be8f95b220cdadbba9a9236eaf115951dc.tar.gz
qemu-c7a0f2be8f95b220cdadbba9a9236eaf115951dc.tar.xz
qemu-c7a0f2be8f95b220cdadbba9a9236eaf115951dc.zip
block: Make bdrv_get_cumulative_perm() public
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20200310113831.27293-2-kwolf@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block_int.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h
index 3f70a98b2d..d8d13700a9 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -1224,6 +1224,9 @@ BdrvChild *bdrv_root_attach_child(BlockDriverState *child_bs,
void *opaque, Error **errp);
void bdrv_root_unref_child(BdrvChild *child);
+void bdrv_get_cumulative_perm(BlockDriverState *bs, uint64_t *perm,
+ uint64_t *shared_perm);
+
/**
* Sets a BdrvChild's permissions. Avoid if the parent is a BDS; use
* bdrv_child_refresh_perms() instead and make the parent's