From d7010dfb685506cc4addd102627205f85fcd0fe7 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Thu, 15 Dec 2016 12:28:58 +0100 Subject: block: Request child permissions in filter drivers All callers will have to request permissions for all of their child nodes. Block drivers that act as simply filters can use the default implementation of .bdrv_child_perm(). Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz Acked-by: Fam Zheng --- block/quorum.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'block/quorum.c') diff --git a/block/quorum.c b/block/quorum.c index bdbcec6e00..40205fb1b3 100644 --- a/block/quorum.c +++ b/block/quorum.c @@ -1133,6 +1133,8 @@ static BlockDriver bdrv_quorum = { .bdrv_add_child = quorum_add_child, .bdrv_del_child = quorum_del_child, + .bdrv_child_perm = bdrv_filter_default_perms, + .is_filter = true, .bdrv_recurse_is_first_non_filter = quorum_recurse_is_first_non_filter, }; -- cgit v1.2.3