block: Add blk_next_root_bs()
authorMax Reitz <mreitz@redhat.com>
Wed, 16 Mar 2016 18:54:42 +0000 (19:54 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 17 Mar 2016 14:47:56 +0000 (15:47 +0100)
commit981f4f578e6a0dfb2d02384941ea17f7ea1a14ec
treec2a89e54572c80acd4dc92d634a166b6249a6246
parent262b4e8f74dfd5ea9159aa98dcd705158b12e8ed
block: Add blk_next_root_bs()

This function iterates over all BDSs attached to a BB. We are going to
need it when rewriting bdrv_next() so it no longer uses bdrv_states.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
include/sysemu/block-backend.h