From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUDLd-00029y-Mz for qemu-devel@nongnu.org; Thu, 10 Oct 2013 06:20:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUDLX-0001Fd-Oh for qemu-devel@nongnu.org; Thu, 10 Oct 2013 06:20:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUDLX-0001FR-GW for qemu-devel@nongnu.org; Thu, 10 Oct 2013 06:19:55 -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 r9AAJoWb002890 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 10 Oct 2013 06:19:53 -0400 From: Max Reitz Date: Thu, 10 Oct 2013 10:52:22 +0200 Message-Id: <1381395144-4449-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] qcow2: Undo leaked allocations in co_writev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz If a write request on a qcow2 image spans more than one L2 table, qcow2_alloc_cluster_offset cannot allocate the required clusters in a single operation. This results in leaks, if a subsequent (atomic) allocation in that function fails, because qcow2_co_writev does not undo unused cluster allocations. This series implements that deallocation and provides a test for it. Max Reitz (2): qcow2: Undo leaked allocations in co_writev qemu-iotests: Extend test 026 block/qcow2.c | 7 +++++++ tests/qemu-iotests/026 | 31 +++++++++++++++++++++++++++++++ tests/qemu-iotests/026.out | 8 ++++++++ tests/qemu-iotests/026.out.nocache | 8 ++++++++ 4 files changed, 54 insertions(+) -- 1.8.3.1