From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un61f-0007tU-IN for qemu-devel@nongnu.org; Thu, 13 Jun 2013 07:49:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un61e-0000bj-M5 for qemu-devel@nongnu.org; Thu, 13 Jun 2013 07:49:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un61e-0000ai-Dz for qemu-devel@nongnu.org; Thu, 13 Jun 2013 07:49:10 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5DBn8mn001363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 13 Jun 2013 07:49:09 -0400 From: Kevin Wolf Date: Thu, 13 Jun 2013 13:47:38 +0200 Message-Id: <1371124063-12971-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 0/5] qcow2: Discard freed clusters List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com This series adds options to make qcow2 discard freed clusters, in several categories. By default, only freed clusters related to snapshots (i.e. mainly snapshot deletion) are discarded. Kevin Wolf (5): Revert "block: Disable driver-specific options for 1.5" qcow2: Add refcount update reason to all callers qcow2: Options to enable discard for freed clusters qcow2: Batch discards block: Always enable discard on the protocol level block.c | 2 +- block/qcow2-cluster.c | 38 +++++++++---- block/qcow2-refcount.c | 139 ++++++++++++++++++++++++++++++++++++++++------- block/qcow2-snapshot.c | 6 +- block/qcow2.c | 30 +++++++++- block/qcow2.h | 32 ++++++++++- blockdev.c | 118 ++-------------------------------------- tests/qemu-iotests/group | 2 +- 8 files changed, 214 insertions(+), 153 deletions(-) -- 1.8.1.4