Re: [Qemu-devel] [PATCH RESEND 28/50] blockdev: Check BB validity in drive-mirror

2015-01-28 Thread Eric Blake
On 01/27/2015 12:46 PM, Max Reitz wrote: > Call blk_is_available() before using blk_bs() to obtain the root > BlockDriverState behind the BlockBackend. > > Signed-off-by: Max Reitz > --- > blockdev.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > Reviewed-by: Eric Blake

[Qemu-devel] [PATCH RESEND 28/50] blockdev: Check BB validity in drive-mirror

2015-01-27 Thread Max Reitz
Call blk_is_available() before using blk_bs() to obtain the root BlockDriverState behind the BlockBackend. Signed-off-by: Max Reitz --- blockdev.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/blockdev.c b/blockdev.c index e335d06..4e12061 100644 --- a/blockdev.c