From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpGoN-0008Pb-40 for qemu-devel@nongnu.org; Wed, 19 Jun 2013 07:44:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpGoM-0001Lq-1Z for qemu-devel@nongnu.org; Wed, 19 Jun 2013 07:44:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpGoL-0001LY-Qa for qemu-devel@nongnu.org; Wed, 19 Jun 2013 07:44:25 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5JBiPiL007909 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 19 Jun 2013 07:44:25 -0400 From: Kevin Wolf Date: Wed, 19 Jun 2013 13:44:16 +0200 Message-Id: <1371642261-18513-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH v2 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. v2: - Removed leftover debug code - Don't discard after COW (overwriting compressed clusters) - Changed some commas into semicolons 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 | 41 ++++++++++---- block/qcow2-refcount.c | 136 +++++++++++++++++++++++++++++++++++++++-------- 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