diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-12-19 16:36:02 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-02-28 20:40:36 +0100 |
commit | 862f215fabf31c80c953155fcb223fea5320bbdf (patch) | |
tree | 19a6fb7d20f99eef9de1e61b49d403688f1b492a /block/parallels.c | |
parent | 6b1a044afb363f03b51c9d0218bef44a34ea98c3 (diff) |
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 <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'block/parallels.c')
-rw-r--r-- | block/parallels.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/parallels.c b/block/parallels.c index b2ec09f7e6..6b0c0a917c 100644 --- a/block/parallels.c +++ b/block/parallels.c @@ -762,6 +762,7 @@ static BlockDriver bdrv_parallels = { .bdrv_probe = parallels_probe, .bdrv_open = parallels_open, .bdrv_close = parallels_close, + .bdrv_child_perm = bdrv_format_default_perms, .bdrv_co_get_block_status = parallels_co_get_block_status, .bdrv_has_zero_init = bdrv_has_zero_init_1, .bdrv_co_flush_to_os = parallels_co_flush_to_os, |