On Wed, Dec 04, 2013 at 04:56:19PM +0100, Peter Lieven wrote:
> Am 04.12.2013 16:49, schrieb Stefan Hajnoczi:
> > On Wed, Nov 27, 2013 at 11:07:07AM +0100, Peter Lieven wrote:
> >> @@ -1397,19 +1396,21 @@ static int img_convert(int argc, char **argv)
> >> }
> >> }
> >>
> >> +clu
Am 04.12.2013 16:49, schrieb Stefan Hajnoczi:
> On Wed, Nov 27, 2013 at 11:07:07AM +0100, Peter Lieven wrote:
>> @@ -1397,19 +1396,21 @@ static int img_convert(int argc, char **argv)
>> }
>> }
>>
>> +cluster_sectors = 0;
>> +ret = bdrv_get_info(out_bs, &bdi);
>> +if (ret
On Wed, Nov 27, 2013 at 11:07:07AM +0100, Peter Lieven wrote:
> @@ -1397,19 +1396,21 @@ static int img_convert(int argc, char **argv)
> }
> }
>
> +cluster_sectors = 0;
> +ret = bdrv_get_info(out_bs, &bdi);
> +if (ret < 0 && compress) {
> +error_report("could not
this patch shortens requests to end at an aligned sector so that
the next request starts aligned.
Reviewed-by: Paolo Bonzini
Signed-off-by: Peter Lieven
---
qemu-img.c | 34 --
1 file changed, 24 insertions(+), 10 deletions(-)
diff --git a/qemu-img.c b/qemu-im