From 862f215fabf31c80c953155fcb223fea5320bbdf Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Mon, 19 Dec 2016 16:36:02 +0100 Subject: block: Request child permissions in format drivers This makes use of the .bdrv_child_perm() implementation for formats that we just added. All format drivers expose the permissions they actually need nows, so that they can be set accordingly and updated when parents are attached or detached. The only format not included here is raw, which was already converted with the other filter drivers. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz Acked-by: Fam Zheng --- block/vdi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'block/vdi.c') diff --git a/block/vdi.c b/block/vdi.c index 18b4773aac..fd6e26dfed 100644 --- a/block/vdi.c +++ b/block/vdi.c @@ -891,6 +891,7 @@ static BlockDriver bdrv_vdi = { .bdrv_open = vdi_open, .bdrv_close = vdi_close, .bdrv_reopen_prepare = vdi_reopen_prepare, + .bdrv_child_perm = bdrv_format_default_perms, .bdrv_create = vdi_create, .bdrv_has_zero_init = bdrv_has_zero_init_1, .bdrv_co_get_block_status = vdi_co_get_block_status, -- cgit v1.2.3