[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] block: There in no change in userland tools aft
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] block: There in no change in userland tools after resizing qcow2 image except file utility. |
Date: |
Sun, 19 Jul 2015 19:57:48 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
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