From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlAG-00035v-Tc for qemu-devel@nongnu.org; Mon, 15 Apr 2013 11:17:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URlAE-0006uY-1f for qemu-devel@nongnu.org; Mon, 15 Apr 2013 11:17:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlAD-0006uQ-Lk for qemu-devel@nongnu.org; Mon, 15 Apr 2013 11:17:49 -0400 From: Stefan Hajnoczi Date: Mon, 15 Apr 2013 17:17:30 +0200 Message-Id: <1366039054-32536-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] qemu-img: support compression regardless of cluster size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Fam Zheng , Ilkka Tengvall , Stefan Hajnoczi It was hard to find a short email subject line. Anyway, the problem is that qemu-img convert -c fails with the following error message if the input image length is not a multiple of the output cluster size: qemu-img: error while compressing sector 0: Input/output error Ilkka Tengvall reported the failure. kwolf and eblake suggested a fix which this patch series implements. qemu-img convert -c succeeds with these patches applied. The final patch adds qemu-iotests case 053 to protect against regressions. Stefan Hajnoczi (4): qcow2: allow sub-cluster compressed write to last cluster qcow: allow sub-cluster compressed write to last cluster qemu-img: do not zero-pad the compressed write buffer qemu-iotests: add 053 unaligned compressed image size test block/qcow.c | 17 +++++++++++-- block/qcow2.c | 17 +++++++++++-- qemu-img.c | 8 ++---- tests/qemu-iotests/053 | 63 ++++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/053.out | 10 ++++++++ tests/qemu-iotests/group | 1 + 6 files changed, 106 insertions(+), 10 deletions(-) create mode 100755 tests/qemu-iotests/053 create mode 100644 tests/qemu-iotests/053.out -- 1.8.1.4