]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Add bdrv_default_perms()
authorMax Reitz <mreitz@redhat.com>
Wed, 13 May 2020 11:05:29 +0000 (13:05 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2020 17:05:25 +0000 (19:05 +0200)
commit2519f54919a9c3e0696e2fac7d564e15722618c4
tree984666a568e00d228ad55bcc28ccc69f8a749fdf
parentf889054f031f2f01ae97bdc7579fbdf3a30e4e0e
block: Add bdrv_default_perms()

This callback can be used by BDSs that use child_of_bds with the
appropriate BdrvChildRole for their children.

Also, make bdrv_format_default_perms() use it for child_of_bds children
(just a temporary solution until we can drop bdrv_format_default_perms()
altogether).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200513110544.176672-20-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
include/block/block_int.h