From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNkfj-0006OF-80 for qemu-devel@nongnu.org; Mon, 15 Oct 2012 09:25:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNkfe-0003Yq-Et for qemu-devel@nongnu.org; Mon, 15 Oct 2012 09:25:31 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:40215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNkfe-0003YT-8H for qemu-devel@nongnu.org; Mon, 15 Oct 2012 09:25:26 -0400 Received: by mail-pa0-f45.google.com with SMTP id fb10so4782842pad.4 for ; Mon, 15 Oct 2012 06:25:25 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <507C0EBC.3030805@redhat.com> Date: Mon, 15 Oct 2012 15:25:16 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20121015.183337.17413021.k.suzaki@aist.go.jp> In-Reply-To: <20121015.183337.17413021.k.suzaki@aist.go.jp> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] delvm does not reduce the qcow2 file size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kuniyasu Suzaki Cc: qemu-devel@nongnu.org Il 15/10/2012 11:33, Kuniyasu Suzaki ha scritto: > Hello, > > "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. QEMU should also convert the unused clusters to "holes" in the file system, but it doesn't do that yet. > Is there any method to reduce the qcow2 file size when I delete a snapshot image? > should I "convert" the qcow2 file? I'm not sure what convert does if you have internal snapshots. Paolo