[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PULL 01/58] block: Make bdrv_perm_names public
From: |
Kevin Wolf |
Subject: |
[Qemu-block] [PULL 01/58] block: Make bdrv_perm_names public |
Date: |
Thu, 11 May 2017 16:32:04 +0200 |
From: Fam Zheng <address@hidden>
It can be used outside of block.c for making user friendly messages.
Signed-off-by: Fam Zheng <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
block.c | 2 +-
include/block/block.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/block.c b/block.c
index a45b9b5..e3aa7f0 100644
--- 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;
diff --git a/include/block/block.h b/include/block/block.h
index 862eb56..9fa0f23 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);
--
1.8.3.1
- [Qemu-block] [PULL 00/58] Block layer patches, Kevin Wolf, 2017/05/11
- [Qemu-block] [PULL 01/58] block: Make bdrv_perm_names public,
Kevin Wolf <=
- [Qemu-block] [PULL 03/58] block: Respect "force-share" in perm propagating, Kevin Wolf, 2017/05/11
- [Qemu-block] [PULL 02/58] block: Add, parse and store "force-share" option, Kevin Wolf, 2017/05/11
- [Qemu-block] [PULL 06/58] qemu-io: Add --force-share option, Kevin Wolf, 2017/05/11
- [Qemu-block] [PULL 04/58] qemu-img: Add --force-share option to subcommands, Kevin Wolf, 2017/05/11
- [Qemu-block] [PULL 09/58] iotests: 055: Don't attach the target image already for drive-backup, Kevin Wolf, 2017/05/11
- [Qemu-block] [PULL 05/58] qemu-img: Update documentation for -U, Kevin Wolf, 2017/05/11
- [Qemu-block] [PULL 08/58] iotests: 046: Prepare for image locking, Kevin Wolf, 2017/05/11
- [Qemu-block] [PULL 07/58] iotests: 030: Prepare for image locking, Kevin Wolf, 2017/05/11