mirror of https://gitee.com/openkylin/qemu.git
block: Make bdrv_perm_names public
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>
This commit is contained in:
parent
76d20ea0f1
commit
5176196c32
2
block.c
2
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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue