|
From: | Max Reitz |
Subject: | Re: [Qemu-devel] [PATCH] qcow2: Free preallocated zero clusters |
Date: | Wed, 09 Oct 2013 11:50:09 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9 |
On 2013-10-09 11:44, Kevin Wolf wrote:
Am 09.10.2013 um 10:44 hat Max Reitz geschrieben:In qcow2_free_any_clusters, preallocated zero clusters should be freed just as normal clusters are. Signed-off-by: Max Reitz <address@hidden>Thanks, applied to the block branch. Do you have a test case that would cause a leak previously? Kevin
Oh, right. qemu-img create -f qcow2 f.qcow2 64M qemu-io -c 'write 0 64M' -c 'write -z 0 64M' -c 'discard 0 64M' f.qcow2 qemu-img check f.qcow2 seems enough, I'll send that test case as a follow-up. Max
[Prev in Thread] | Current Thread | [Next in Thread] |