From: Paolo Bonzini <pbonzini@redhat.com>
To: Kuniyasu Suzaki <k.suzaki@aist.go.jp>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] delvm does not reduce the qcow2 file size
Date: Tue, 16 Oct 2012 08:54:46 +0200 [thread overview]
Message-ID: <507D04B6.8010308@redhat.com> (raw)
In-Reply-To: <20121016.152349.133292964.k.suzaki@aist.go.jp>
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
next prev parent reply other threads:[~2012-10-16 6:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-15 9:33 [Qemu-devel] delvm does not reduce the qcow2 file size Kuniyasu Suzaki
2012-10-15 13:25 ` Paolo Bonzini
2012-10-15 14:24 ` Kevin Wolf
2012-10-16 6:23 ` Kuniyasu Suzaki
2012-10-16 6:54 ` Paolo Bonzini [this message]
2012-10-16 11:06 ` Kuniyasu Suzaki
2012-10-16 11:19 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=507D04B6.8010308@redhat.com \
--to=pbonzini@redhat.com \
--cc=k.suzaki@aist.go.jp \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).