block: Make bdrv_is_inserted() recursive
commit28d7a78996ae73e681d0e061a4be446ed2240c97
authorMax Reitz <mreitz@redhat.com>
Mon, 19 Oct 2015 15:53:13 +0000 (19 17:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 23 Oct 2015 16:18:22 +0000 (23 18:18 +0200)
tree5359ee444ab09d8a59f16e75dce88b94d4a215c9
parentdb0284f86a31ec66d138f0f7794321c306af969e
block: Make bdrv_is_inserted() recursive

If bdrv_is_inserted() is called on the top level BDS, it should make
sure all nodes in the BDS tree are actually inserted.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c