block: Ignore multiple children in bdrv_check_update_perm()
commit46181129eac9a56d9a948667282dd03d5015f096
authorKevin Wolf <kwolf@redhat.com>
Mon, 6 Mar 2017 14:00:13 +0000 (6 15:00 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 7 Mar 2017 13:53:28 +0000 (7 14:53 +0100)
treed40e4c5258df79f8321c6b622a370c6f2eaa0b4a
parent8ee039951dea9a809e4745c42aebb4a7cec4bbbb
block: Ignore multiple children in bdrv_check_update_perm()

change_parent_backing_link() will need to update multiple BdrvChild
objects at once. Checking permissions reference by reference doesn't
work because permissions need to be consistent only with all parents
moved to the new child.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c
include/block/block_int.h