From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1astC3-00034S-Eh for qemu-devel@nongnu.org; Wed, 20 Apr 2016 10:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1astBs-0007aA-Oq for qemu-devel@nongnu.org; Wed, 20 Apr 2016 10:33:27 -0400 From: Kevin Wolf Date: Wed, 20 Apr 2016 16:32:43 +0200 Message-Id: <1461162766-907-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH for-2.6 v3 0/3] block: Fix drive-mirror with image size unaligned with granularity List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: kwolf@redhat.com, famz@redhat.com, mreitz@redhat.com, jcody@redhat.com, qemu-devel@nongnu.org Taking over Fam's series as we're late for -rc3. Original cover letter: This fixes the bug introduced in e5b43573e28 and lately noticed by Kevin. v2: Move the mirror_clip_sectors() to mirror_iteration. [Max] v3: Fix nb_clusters calculation and add a test case for it [Kevin] Fam Zheng (3): mirror: Don't extend the last sub-chunk iotests: Add iotests.image_size iotests: Test case for drive-mirror with unaligned image size block/mirror.c | 19 ++++++++++--- tests/qemu-iotests/109.out | 44 +++++++++++++++--------------- tests/qemu-iotests/152 | 62 +++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/152.out | 5 ++++ tests/qemu-iotests/group | 1 + tests/qemu-iotests/iotests.py | 6 +++++ 6 files changed, 111 insertions(+), 26 deletions(-) create mode 100644 tests/qemu-iotests/152 create mode 100644 tests/qemu-iotests/152.out -- 1.8.3.1