]> Git Repo - qemu.git/commit
block: bdrv_check_perm(): process children anyway
authorVladimir Sementsov-Ogievskiy <[email protected]>
Wed, 21 Oct 2020 14:58:45 +0000 (17:58 +0300)
committerMax Reitz <[email protected]>
Fri, 18 Dec 2020 11:35:55 +0000 (12:35 +0100)
commit9530a25b8b7eb5cc1800b66ee617610cd43f0fad
tree47b99abb97aea981321449c706e9a2be1a25f1ae
parentd1a764d126aa9bd1b519855607f55daf266b07bf
block: bdrv_check_perm(): process children anyway

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]>
Message-Id: <20201021145859[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Signed-off-by: Max Reitz <[email protected]>
block.c
This page took 0.024396 seconds and 4 git commands to generate.