diff options
author | Kevin Wolf | 2016-12-20 16:23:46 +0100 |
---|---|---|
committer | Kevin Wolf | 2017-02-28 20:40:36 +0100 |
commit | 91ef38257ad225f7fa17a6583fb792c0be9e8acf (patch) | |
tree | d2b9fb9279f42106392fc9cb74d18d4a45ead62a /include/block | |
parent | block: Request child permissions in format drivers (diff) | |
download | qemu-91ef38257ad225f7fa17a6583fb792c0be9e8acf.tar.gz qemu-91ef38257ad225f7fa17a6583fb792c0be9e8acf.tar.xz qemu-91ef38257ad225f7fa17a6583fb792c0be9e8acf.zip |
vvfat: Implement .bdrv_child_perm()
vvfat is the last remaining driver that can have children, but doesn't
implement .bdrv_child_perm() yet. The default handlers aren't suitable
here, so let's implement a very simple driver-specific one that protects
the internal child from being used by other users as good as our
permissions permit.
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 'include/block')
-rw-r--r-- | include/block/block_int.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index eb0598e580..63d54460e5 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -466,6 +466,7 @@ struct BdrvChildRole { extern const BdrvChildRole child_file; extern const BdrvChildRole child_format; +extern const BdrvChildRole child_backing; struct BdrvChild { BlockDriverState *bs; |