Re: [Qemu-devel] [PATCH RESEND 24/50] blockdev: Check BB validity in block-stream

2015-01-28 Thread Eric Blake
On 01/27/2015 12:45 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 | 13 ++--- > 1 file changed, 10 insertions(+), 3 deletions(-) > Reviewed-by: Eric Bla

[Qemu-devel] [PATCH RESEND 24/50] blockdev: Check BB validity in block-stream

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 | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/blockdev.c b/blockdev.c index 9801a7e..74d26a6 100644 --- a/blockd