On 29/03/2016 17:08, Kevin Wolf wrote:
> From: Max Reitz <mre...@redhat.com>
> 
> Passing -S 0 to qemu-img convert should result in all source data being
> copied to the output, even if that source data is known to be 0. The
> output image should therefore have exactly the same size on disk as an
> image which we explicitly filled with data.
> 
> Signed-off-by: Max Reitz <mre...@redhat.com>
> Reviewed-by: Fam Zheng <f...@redhat.com>
> Signed-off-by: Kevin Wolf <kw...@redhat.com>

This fails with XFS and raw format, which preallocates an extra cluster
at the end of the file created with qemu-io (so that the on-disk size is
2056 512-byte blocks).

Paolo

Reply via email to