mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
862f215fab
commit
91ef38257a
3 changed files with 24 additions and 1 deletions
2
block.c
2
block.c
|
@ -823,7 +823,7 @@ static void bdrv_backing_options(int *child_flags, QDict *child_options,
|
|||
*child_flags = flags;
|
||||
}
|
||||
|
||||
static const BdrvChildRole child_backing = {
|
||||
const BdrvChildRole child_backing = {
|
||||
.inherit_options = bdrv_backing_options,
|
||||
.drained_begin = bdrv_child_cb_drained_begin,
|
||||
.drained_end = bdrv_child_cb_drained_end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue