From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYZe3-0004JT-Lg for qemu-devel@nongnu.org; Thu, 19 Mar 2015 08:33:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYZe2-0002S6-UO for qemu-devel@nongnu.org; Thu, 19 Mar 2015 08:33:51 -0400 From: Kevin Wolf Date: Thu, 19 Mar 2015 13:33:30 +0100 Message-Id: <1426768413-31079-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/3] qemu-img convert: Rewrite copying logic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: kwolf@redhat.com, pl@kamp.de, qemu-devel@nongnu.org, stefanha@redhat.com, mreitz@redhat.com See the commit message of patch 2 for the background. v2: - Rebased. Commit f1d3cd79 changed many bdrv_* calls to blk_* calls. This version tries to keep those conversions and use BlockBackend where qemu.git master does or where it makes sense. Added patch 1 to get blk_write_zeroes(). - Renamed s->out_backing as s->target_has_backing [Max] - convert_iteration_sectors(): Limit n to BDRV_REQUEST_MAX_SECTORS instead of INT_MAX [Max] - convert_read(): Fixed sector number for image concatenation [Max] - Fixed -S 0 for full allocation [Max, Peter] - Leave has_zero_init = false instead of failing the conversion if bdrv_make_zero() returns an error [Max] - Set has_zero_init = true instead of 1 [Max] - Don't ignore error returns in a final blk_write_compressed() [Max] - Removed TODO comment after deciding that no change is needed - Many added tests Kevin Wolf (3): block-backend: Expose bdrv_write_zeroes() qemu-img convert: Rewrite copying logic qemu-iotests: Some qemu-img convert tests block/block-backend.c | 11 + include/sysemu/block-backend.h | 2 + qemu-img.c | 516 +++++++++++++++++++++++++---------------- tests/qemu-iotests/122 | 223 ++++++++++++++++++ tests/qemu-iotests/122.out | 209 +++++++++++++++++ tests/qemu-iotests/group | 1 + 6 files changed, 756 insertions(+), 206 deletions(-) create mode 100755 tests/qemu-iotests/122 create mode 100644 tests/qemu-iotests/122.out -- 1.8.3.1