]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
block: Make bdrv_perm_names public
authorFam Zheng <famz@redhat.com>
Tue, 2 May 2017 16:35:36 +0000 (00:35 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 11 May 2017 09:02:38 +0000 (11:02 +0200)
It can be used outside of block.c for making user friendly messages.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
include/block/block.h

diff --git a/block.c b/block.c
index a45b9b5c29b12a297e239f846ad4235cda68c752..e3aa7f082423816173ff45a39420efcc60786756 100644 (file)
--- a/block.c
+++ b/block.c
@@ -1586,7 +1586,7 @@ static char *bdrv_child_user_desc(BdrvChild *c)
     return g_strdup("another user");
 }
 
-static char *bdrv_perm_names(uint64_t perm)
+char *bdrv_perm_names(uint64_t perm)
 {
     struct perm_name {
         uint64_t perm;
index 862eb56fc72333317447195e2c9653e388cfc843..9fa0f235a69a7aa112d83de1f19fc60ce234292b 100644 (file)
@@ -224,6 +224,8 @@ enum {
     BLK_PERM_ALL                = 0x1f,
 };
 
+char *bdrv_perm_names(uint64_t perm);
+
 /* disk I/O throttling */
 void bdrv_init(void);
 void bdrv_init_with_whitelist(void);