aboutsummaryrefslogtreecommitdiff
path: root/block/bochs.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-12-19 16:36:02 +0100
committerKevin Wolf <kwolf@redhat.com>2017-02-28 20:40:36 +0100
commit862f215fabf31c80c953155fcb223fea5320bbdf (patch)
tree19a6fb7d20f99eef9de1e61b49d403688f1b492a /block/bochs.c
parent6b1a044afb363f03b51c9d0218bef44a34ea98c3 (diff)
downloadqemu-862f215fabf31c80c953155fcb223fea5320bbdf.zip
qemu-862f215fabf31c80c953155fcb223fea5320bbdf.tar.gz
qemu-862f215fabf31c80c953155fcb223fea5320bbdf.tar.bz2
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/bochs.c')
-rw-r--r--block/bochs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/bochs.c b/block/bochs.c
index 7dd2ac4..516da56 100644
--- a/block/bochs.c
+++ b/block/bochs.c
@@ -293,6 +293,7 @@ static BlockDriver bdrv_bochs = {
.instance_size = sizeof(BDRVBochsState),
.bdrv_probe = bochs_probe,
.bdrv_open = bochs_open,
+ .bdrv_child_perm = bdrv_format_default_perms,
.bdrv_refresh_limits = bochs_refresh_limits,
.bdrv_co_preadv = bochs_co_preadv,
.bdrv_close = bochs_close,