Received: from eggs.gnu.org ([2001:4830:134:3::10]:33454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPV46-0002Do-6j for qemu-devel@nongnu.org; Fri, 27 Sep 2013 06:14:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPV3z-0005oe-MP for qemu-devel@nongnu.org; Fri, 27 Sep 2013 06:14:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPV3z-0005oY-F0 for qemu-devel@nongnu.org; Fri, 27 Sep 2013 06:14:19 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8RAEIL4018622 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 27 Sep 2013 06:14:19 -0400 From: Max Reitz Date: Fri, 27 Sep 2013 12:14:14 +0200 Message-Id: <1380276856-29777-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/2] qcow2: count_contiguous_clusters and compression List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz Compressed clusters can never be contiguous and count_contiguous_clusters will not even work correctly for them. Therefore, those cluster should always be treated as non-contiguous. This series makes count_contiguous_clusters always stop at compressed clusters and removes the corresponding flag from its function calls. v2: - added patch 2 (following Kevin's proposal) - patch 1 remains unmodified Max Reitz (2): qcow2: count_contiguous_clusters and compression qcow2: COMPRESSED on count_contiguous_clusters block/qcow2-cluster.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 1.8.3.1