]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: Rewrite bdrv_next()
authorMax Reitz <mreitz@redhat.com>
Wed, 16 Mar 2016 18:54:43 +0000 (19:54 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 17 Mar 2016 14:47:56 +0000 (15:47 +0100)
commit26260580349e0369858f03f46ebaf9e31c2a780f
tree4ae85d7b2c2a9e07eb5a1b058da9c2aa7308375a
parent981f4f578e6a0dfb2d02384941ea17f7ea1a14ec
block: Rewrite bdrv_next()

Instead of using the bdrv_states list, iterate over all the
BlockDriverStates attached to BlockBackends, and over all the
monitor-owned BDSs afterwards (except for those attached to a BB).

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