On 19/07/2015 10:12, Taeha Kim wrote:
> $ ./qemu/qemu-img resize 100G.qcow2 200G
> Image resized.
> 
> 
> $ ./qemu/qemu-img check 100G.qcow2
> No errors were found on the image.
> 1638400/3276800 = 50.00% allocated, 0.00% fragmented, 0.00% compressed 
> clusters
> Image end offset: 107390894080

You are getting a large qcow2 image because you have specified metadata
preallocation.  However you can see from "qemu-img check" that the
preallocation is lost even with your patch.

I think if you try resizing to 102408M for example (very little above
the previous size) "qemu-img check" will show corruption after the resize.

Paolo

Reply via email to