On 21.10.20 16:58, Vladimir Sementsov-Ogievskiy wrote:
Do generic processing even for drivers which define .bdrv_check_perm
handler. It's needed for further preallocate filter: it will need to do
additional action on bdrv_check_perm, but don't want to reimplement
generic logic.
The patch doesn't change existing behaviour: the only driver that
implements bdrv_check_perm is file-posix, but it never has any
children.
Also, bdrv_set_perm() don't stop processing if driver has
.bdrv_set_perm handler as well.
Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
---
block.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
Reviewed-by: Max Reitz <[email protected]>