Re: [Qemu-devel] [PATCH] bdrv_img_create: Fix segfault

2011-06-06 Thread Stefan Hajnoczi
On Mon, Jun 6, 2011 at 11:00 AM, Kevin Wolf wrote: > Am 02.06.2011 00:34, schrieb Stefan Hajnoczi: >> On Wed, Jun 1, 2011 at 1:05 PM, Kevin Wolf wrote: >>> Block drivers that don't support creating images don't have a size option. >>> Fail >>> gracefully instead of segfaulting when trying to acc

Re: [Qemu-devel] [PATCH] bdrv_img_create: Fix segfault

2011-06-06 Thread Kevin Wolf
Am 02.06.2011 00:34, schrieb Stefan Hajnoczi: > On Wed, Jun 1, 2011 at 1:05 PM, Kevin Wolf wrote: >> Block drivers that don't support creating images don't have a size option. >> Fail >> gracefully instead of segfaulting when trying to access the option's value. >> >> Signed-off-by: Kevin Wolf >

Re: [Qemu-devel] [PATCH] bdrv_img_create: Fix segfault

2011-06-01 Thread Stefan Hajnoczi
On Wed, Jun 1, 2011 at 1:05 PM, Kevin Wolf wrote: > Block drivers that don't support creating images don't have a size option. > Fail > gracefully instead of segfaulting when trying to access the option's value. > > Signed-off-by: Kevin Wolf > --- >  block.c |    5 +++-- >  1 files changed, 3 in

[Qemu-devel] [PATCH] bdrv_img_create: Fix segfault

2011-06-01 Thread Kevin Wolf
Block drivers that don't support creating images don't have a size option. Fail gracefully instead of segfaulting when trying to access the option's value. Signed-off-by: Kevin Wolf --- block.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/block.c b/block.c index e