From: Emil Langrock Subject: ATA Trim for qcow(2) Date: Sun, 23 Jan 2011 22:35:45 +0100 Message-ID: <201101232235.50659.emil.langrock@gmx.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mailout-de.gmx.net ([213.165.64.22]:55376 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752559Ab1AWVfy (ORCPT ); Sun, 23 Jan 2011 16:35:54 -0500 Sender: kvm-owner@vger.kernel.org List-ID: Hi, there is support for ext4 to use the trim ATA command when a block is freed. I read that there should be an extra command which does that freeing afterwards. So is it possible to use that information inside the qcow to mark those sectors as free? This would make it possible to shrink the size of an image significantly using some offline (maybe also some online) tools. Best regards, Emil