Re: [Qemu-devel] [PATCH] block/qcow2: Use bdrv_truncate for size amend

2013-10-02 Thread Max Reitz
On 2013-10-02 14:32, Stefan Hajnoczi wrote: On Mon, Sep 09, 2013 at 12:17:41PM +0200, Max Reitz wrote: When amending the size option for a qcow2 image, use bdrv_truncate instead of qcow2_truncate directly, since the latter will not adjust the total_sectors count in the BDS structure (whereas the

Re: [Qemu-devel] [PATCH] block/qcow2: Use bdrv_truncate for size amend

2013-10-02 Thread Stefan Hajnoczi
On Mon, Sep 09, 2013 at 12:17:41PM +0200, Max Reitz wrote: > When amending the size option for a qcow2 image, use bdrv_truncate > instead of qcow2_truncate directly, since the latter will not adjust the > total_sectors count in the BDS structure (whereas the former will). > > Signed-off-by: Max Re

[Qemu-devel] [PATCH] block/qcow2: Use bdrv_truncate for size amend

2013-09-09 Thread Max Reitz
When amending the size option for a qcow2 image, use bdrv_truncate instead of qcow2_truncate directly, since the latter will not adjust the total_sectors count in the BDS structure (whereas the former will). Signed-off-by: Max Reitz --- Depends on (follow-up to): - block/qcow2: Image file option