Received: from eggs.gnu.org ([2001:4830:134:3::10]:40864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5T1A-0005ba-1E for qemu-devel@nongnu.org; Tue, 02 May 2017 04:18:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5T19-0007Xh-Ao for qemu-devel@nongnu.org; Tue, 02 May 2017 04:18:44 -0400 From: Fam Zheng Date: Tue, 2 May 2017 16:18:11 +0800 Message-Id: <20170502081832.9546-2-famz@redhat.com> In-Reply-To: <20170502081832.9546-1-famz@redhat.com> References: <20170502081832.9546-1-famz@redhat.com> Subject: [Qemu-devel] [PATCH v16 01/22] block: Make bdrv_perm_names public List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: eblake@redhat.com, Kevin Wolf , Max Reitz , qemu-block@nongnu.org It can be used outside of block.c for making user friendly messages. Signed-off-by: Fam Zheng --- block.c | 2 +- include/block/block.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index 7b557f3..dd272cb 100644 --- a/block.c +++ b/block.c @@ -1588,7 +1588,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; diff --git a/include/block/block.h b/include/block/block.h index 144df0d..14a3df9 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -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); -- 2.9.3