From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPZRc-0000Cd-RA for qemu-devel@nongnu.org; Fri, 27 Sep 2013 10:55:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPZRW-0001QW-R9 for qemu-devel@nongnu.org; Fri, 27 Sep 2013 10:55:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPZRW-0001QG-JD for qemu-devel@nongnu.org; Fri, 27 Sep 2013 10:54:54 -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 r8REsreh000892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 27 Sep 2013 10:54:53 -0400 Date: Fri, 27 Sep 2013 16:54:52 +0200 From: Kevin Wolf Message-ID: <20130927145452.GA4510@dhcp-200-207.str.redhat.com> References: <1380119840-12672-1-git-send-email-mreitz@redhat.com> <1380119840-12672-3-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1380119840-12672-3-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH 2/3] qcow2: Free allocated L2 cluster on error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: qemu-devel@nongnu.org, Stefan Hajnoczi Am 25.09.2013 um 16:37 hat Max Reitz geschrieben: > If an error occurs in l2_allocate, the allocated (but unused) L2 cluster > should be freed. > > Signed-off-by: Max Reitz > --- > block/qcow2-cluster.c | 4 ++++ > 1 file changed, 4 insertions(+) This needs an update of the reference output for test case 026 (both for -nocache and writethrough). Most of the changes look expected and good, like cluster leaks disappearing. With -nocache, however, there are a few cases that failed previously and result in successful writes now. It would be interesting to see the explanation for these before we merge the patch. Kevin