qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] delvm does not reduce the qcow2 file size


From: Paolo Bonzini
Subject: Re: [Qemu-devel] delvm does not reduce the qcow2 file size
Date: Tue, 16 Oct 2012 08:54:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121009 Thunderbird/16.0

Il 16/10/2012 08:23, Kuniyasu Suzaki ha scritto:
>>> "delvm" is a command to delete a snapshot image in a qcow2 file.
>>> However it does not reduce the qcow2 file size.
>>
>> Note that the file will not grow when new allocations are performed in
>> the future.
> 
> You mean that the qcow2 file size will not increase when "savevm"
> commnad is issued after "delvm".
> Namely, the qcow2 file size is almost same when I take a snapshot
> after delete previous snapshot image.

Exactly.  The first writes to the qcow2 file will also reuse the space
left free by "delvm", if they have to allocate new clusters.

>> QEMU should also convert the unused clusters to "holes" in the file
>> system, but it doesn't do that yet.
> 
> I hope a qcow2 file is reduced automatically when a snapshot is deleted.

Yes, that's part of the plan.  The file would not reduce its size, but
the space would still be given back to the filesystem.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]