block: add bdrv_find_backing_image
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 18 Jan 2012 14:40:51 +0000 (14:40 +0000)
committerKevin Wolf <kwolf@redhat.com>
Thu, 26 Jan 2012 13:49:18 +0000 (14:49 +0100)
commite8a6bb9caa5379b0fcaca4e0a12aa6d2913961f3
treee798e0ea0da0470567505371023b47498e530daf
parentaa398a5c3a4c0fc29baf02aee5283a7fa0f202a3
block: add bdrv_find_backing_image

Add bdrv_find_backing_image: given a BlockDriverState pointer, and an id,
traverse the backing image chain to locate the id.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block.h