diff options
| author | Max Reitz | 2020-05-13 13:05:27 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2020-05-18 19:05:25 +0200 |
| commit | 6f838a4b73d9c85e498f94c28109dde0efc1cb9d (patch) | |
| tree | b3006c528d56869d01a3d89bc8934e0b74e951c7 /include/block | |
| parent | block: Pull out bdrv_default_perms_for_cow() (diff) | |
| download | qemu-6f838a4b73d9c85e498f94c28109dde0efc1cb9d.tar.gz qemu-6f838a4b73d9c85e498f94c28109dde0efc1cb9d.tar.xz qemu-6f838a4b73d9c85e498f94c28109dde0efc1cb9d.zip | |
block: Pull out bdrv_default_perms_for_storage()
Right now, bdrv_format_default_perms() is used by format parents
(generally). We want to switch to a model where most parents use a
single BdrvChildClass, which then decides the permissions based on the
child role. To do so, we have to split bdrv_format_default_perms() into
separate functions for each such role.
Note that bdrv_default_perms_for_storage() currently handles all DATA |
METADATA children. A follow-up patch is going to split it further into
one function for each case.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200513110544.176672-18-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
0 files changed, 0 insertions, 0 deletions
