diff options
author | Max Reitz <mreitz@redhat.com> | 2019-05-22 19:03:47 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-06-18 16:41:10 +0200 |
commit | f94dc3b414028bc762f51ea66c170276130d5f8a (patch) | |
tree | 5d6e1ea11ecb9dd97ac872b2489a6a98ac8d483a /hmp.h | |
parent | c1087f12066a1ff34153dd10662c1a46a874087c (diff) | |
download | qemu-f94dc3b414028bc762f51ea66c170276130d5f8a.zip qemu-f94dc3b414028bc762f51ea66c170276130d5f8a.tar.gz qemu-f94dc3b414028bc762f51ea66c170276130d5f8a.tar.bz2 |
block/mirror: Fix child permissions
We cannot use bdrv_child_try_set_perm() to give up all restrictions on
the child edge, and still have bdrv_mirror_top_child_perm() request
BLK_PERM_WRITE. Fix this by making bdrv_mirror_top_child_perm() return
0/BLK_PERM_ALL when we want to give up all permissions, and replacing
bdrv_child_try_set_perm() by bdrv_child_refresh_perms().
The bdrv_child_try_set_perm() before removing the node with
bdrv_replace_node() is then unnecessary. No permissions have changed
since the previous invocation of bdrv_child_try_set_perm().
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hmp.h')
0 files changed, 0 insertions, 0 deletions