From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCATE-0000dL-Sj for qemu-devel@nongnu.org; Sat, 08 Feb 2014 11:09:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCAT6-0006Cl-U5 for qemu-devel@nongnu.org; Sat, 08 Feb 2014 11:09:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCAT6-0006Ca-MZ for qemu-devel@nongnu.org; Sat, 08 Feb 2014 11:09:24 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s18G9N86002021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 8 Feb 2014 11:09:23 -0500 Message-ID: <52F6573D.3090503@redhat.com> Date: Sat, 08 Feb 2014 17:11:41 +0100 From: Max Reitz MIME-Version: 1.0 References: <1391873296-23451-1-git-send-email-kwolf@redhat.com> In-Reply-To: <1391873296-23451-1-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qcow2: Set zero flag for discarded clusters List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-devel@nongnu.org Cc: pbonzini@redhat.com, stefanha@redhat.com On 08.02.2014 16:28, Kevin Wolf wrote: > Instead of making the backing file contents visible again after a discard > request, set the zero flag if possible (i.e. on version >= 3). > > Signed-off-by: Kevin Wolf > --- > block/qcow2-cluster.c | 22 ++++++++++++++++++++-- > 1 file changed, 20 insertions(+), 2 deletions(-) Reviewed-by: Max Reitz