[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 16/33] block: Pull out bdrv_default_perms_for_storage()
From: |
Max Reitz |
Subject: |
Re: [PATCH v2 16/33] block: Pull out bdrv_default_perms_for_storage() |
Date: |
Thu, 6 Feb 2020 12:20:56 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 05.02.20 22:02, Eric Blake wrote:
> On 2/4/20 11:08 AM, Max Reitz wrote:
>> Signed-off-by: Max Reitz <address@hidden>
>> ---
>
> Commit message is short.
How about:
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.
Max
signature.asc
Description: OpenPGP digital signature
- [PATCH v2 04/33] block: Add BdrvChildRole to BdrvChild, (continued)
- [PATCH v2 18/33] block: Add bdrv_default_perms(), Max Reitz, 2020/02/04
- [PATCH v2 17/33] block: Split bdrv_default_perms_for_storage(), Max Reitz, 2020/02/04
- [PATCH v2 16/33] block: Pull out bdrv_default_perms_for_storage(), Max Reitz, 2020/02/04
- [PATCH v2 19/33] raw-format: Split raw_read_options(), Max Reitz, 2020/02/04
- [PATCH v2 20/33] block: Switch child_format users to child_of_bds, Max Reitz, 2020/02/04
- [PATCH v2 21/33] block: Drop child_format, Max Reitz, 2020/02/04
- [PATCH v2 22/33] block: Make backing files child_of_bds children, Max Reitz, 2020/02/04