diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-12-15 12:28:58 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-02-28 20:40:36 +0100 |
commit | d7010dfb685506cc4addd102627205f85fcd0fe7 (patch) | |
tree | 71109293de625849280b71f8e332160a6066f853 /block/blkdebug.c | |
parent | 6a1b9ee152101868082dbf24ccb683af0431c85b (diff) | |
download | qemu-d7010dfb685506cc4addd102627205f85fcd0fe7.zip qemu-d7010dfb685506cc4addd102627205f85fcd0fe7.tar.gz qemu-d7010dfb685506cc4addd102627205f85fcd0fe7.tar.bz2 |
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 <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'block/blkdebug.c')
-rw-r--r-- | block/blkdebug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c index 6117ce5..67e8024 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -734,6 +734,8 @@ static BlockDriver bdrv_blkdebug = { .bdrv_file_open = blkdebug_open, .bdrv_close = blkdebug_close, .bdrv_reopen_prepare = blkdebug_reopen_prepare, + .bdrv_child_perm = bdrv_filter_default_perms, + .bdrv_getlength = blkdebug_getlength, .bdrv_truncate = blkdebug_truncate, .bdrv_refresh_filename = blkdebug_refresh_filename, |