Signed-off-by: Fam Zheng <f...@redhat.com> --- block.c | 2 ++ include/block/block.h | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/block.c b/block.c index 50ba264..d98662f 100644 --- a/block.c +++ b/block.c @@ -1649,6 +1649,8 @@ char *bdrv_perm_names(uint64_t perm) { BLK_PERM_WRITE_UNCHANGED, "write unchanged" }, { BLK_PERM_RESIZE, "resize" }, { BLK_PERM_GRAPH_MOD, "change children" }, + { BLK_PERM_AIO_CONTEXT_CHANGE, + "aio context change" }, { 0, NULL } }; diff --git a/include/block/block.h b/include/block/block.h index 9b355e9..017d6c8 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -225,7 +225,12 @@ enum { */ BLK_PERM_GRAPH_MOD = 0x10, - BLK_PERM_ALL = 0x1f, + /** + * This permission is required to change the AioContext of this node. + */ + BLK_PERM_AIO_CONTEXT_CHANGE = 0x20, + + BLK_PERM_ALL = 0x3f, }; char *bdrv_perm_names(uint64_t perm); -- 2.9.4