From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLH15-0006YL-Pk for qemu-devel@nongnu.org; Tue, 10 Feb 2015 15:02:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLH12-0002Yk-4Y for qemu-devel@nongnu.org; Tue, 10 Feb 2015 15:02:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLH11-0002Xx-Sd for qemu-devel@nongnu.org; Tue, 10 Feb 2015 15:02:36 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1AK2YVv031105 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 10 Feb 2015 15:02:34 -0500 From: Max Reitz Date: Tue, 10 Feb 2015 15:02:30 -0500 Message-Id: <1423598552-24301-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] qcow2: Respect new_block in alloc_refcount_block() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Fam Zheng , Stefan Hajnoczi , Max Reitz Under certain circumstances, making the refcount table grow can result in leaking clusters. The first patch fixes at least some of those circumstances (maybe there are more, but these are the ones I am aware of), and the second patch adds a test case. Max Reitz (2): qcow2: Respect new_block in alloc_refcount_block() iotests: Add tests for refcount table growth block/qcow2-refcount.c | 16 ++++++- tests/qemu-iotests/121 | 102 +++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/121.out | 23 ++++++++++ tests/qemu-iotests/group | 1 + 4 files changed, 140 insertions(+), 2 deletions(-) create mode 100755 tests/qemu-iotests/121 create mode 100644 tests/qemu-iotests/121.out -- 2.1.0