Re: [Qemu-devel] [PATCH] qemu-img: change opening method for the output in dd

2016-08-11 Thread Fam Zheng
On Thu, 08/11 06:02, Reda Sallahi wrote: > dd was creating an output image regardless of whether there was one already > created. With this patch we try to open first the output image and resize it > if necessary. > > Signed-off-by: Reda Sallahi > --- > Depends on: > [PATCH v2] qemu-img: add conv

Re: [Qemu-devel] [PATCH] qemu-img: change opening method for the output in dd

2016-08-11 Thread Stefan Hajnoczi
On Thu, Aug 11, 2016 at 06:02:32AM +0200, Reda Sallahi wrote: > +bs = bdrv_open(out.filename, NULL, qoptions, BDRV_O_RDWR, &local_err); Why are bdrv_*() functions used instead of blk_*()? signature.asc Description: PGP signature

[Qemu-devel] [PATCH] qemu-img: change opening method for the output in dd

2016-08-10 Thread Reda Sallahi
dd was creating an output image regardless of whether there was one already created. With this patch we try to open first the output image and resize it if necessary. Signed-off-by: Reda Sallahi --- Depends on: [PATCH v2] qemu-img: add conv=notrunc option to dd qemu-img.c | 91 +