From nobody Sun Oct 5 19:22:51 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1534301893137708.4650384526077; Tue, 14 Aug 2018 19:58:13 -0700 (PDT) Received: from localhost ([::1]:47001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpm0h-0002eF-MH for importer@patchew.org; Tue, 14 Aug 2018 22:58:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fplz1-0001hH-1N for qemu-devel@nongnu.org; Tue, 14 Aug 2018 22:56:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fplyz-00077u-L3 for qemu-devel@nongnu.org; Tue, 14 Aug 2018 22:56:26 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:48662 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fplyw-000775-GJ; Tue, 14 Aug 2018 22:56:22 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1879640216EE; Wed, 15 Aug 2018 02:56:22 +0000 (UTC) Received: from red.redhat.com (ovpn-120-153.rdu2.redhat.com [10.10.120.153]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4F619105543D; Wed, 15 Aug 2018 02:56:20 +0000 (UTC) From: Eric Blake To: qemu-devel@nongnu.org Date: Tue, 14 Aug 2018 21:56:13 -0500 Message-Id: <20180815025614.53588-2-eblake@redhat.com> In-Reply-To: <20180815025614.53588-1-eblake@redhat.com> References: <20180815025614.53588-1-eblake@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 15 Aug 2018 02:56:22 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 15 Aug 2018 02:56:22 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'eblake@redhat.com' RCPT:'' X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.187.233.73 Subject: [Qemu-devel] [PATCH 1/2] qemu-img: Fix dd with skip= and count= X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , fullmanet@gmail.com, qemu-stable@nongnu.org, qemu-block@nongnu.org, mreitz@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RDMRC_1 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" When both skip=3D and count=3D are active, qemu-img dd was not copying enough data. It didn't help that the code made the same check for dd.flags & C_SKIP in two separate places. Compute 'size' as the amount of bytes to be read, and 'end' as the offset to end at, rather than trying to cram both meanings into a single variable (which only worked as long as we had at most one of those two limiting factors to worry about, but not both). Enhance the test to cover more combinations, and expose the problem. Signed-off-by: Eric Blake CC: qemu-stable@nongnu.org --- qemu-img.c | 39 ++++++++++++++++--------------------- tests/qemu-iotests/160 | 9 ++++++--- tests/qemu-iotests/160.out | 48 ++++++++++++++++++++++++++++++++++++++++++= ++++ 3 files changed, 70 insertions(+), 26 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 1acddf693c6..d72f0f0ec94 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -4398,7 +4398,7 @@ static int img_dd(int argc, char **argv) const char *out_fmt =3D "raw"; const char *fmt =3D NULL; int64_t size =3D 0; - int64_t block_count =3D 0, out_pos, in_pos; + int64_t block_count =3D 0, out_pos, in_pos, end; bool force_share =3D false; struct DdInfo dd =3D { .flags =3D 0, @@ -4559,19 +4559,23 @@ static int img_dd(int argc, char **argv) goto out; } + /* Overflow means the specified offset is beyond input image's size */ + if (dd.flags & C_SKIP && (in.offset > INT64_MAX / in.bsz || + size < in.bsz * in.offset)) { + size =3D 0; + error_report("%s: cannot skip to specified offset", in.filename); + } else { + size -=3D in.offset * in.bsz; + in_pos =3D in.offset * in.bsz; + } + if (dd.flags & C_COUNT && dd.count <=3D INT64_MAX / in.bsz && dd.count * in.bsz < size) { size =3D dd.count * in.bsz; } - /* Overflow means the specified offset is beyond input image's size */ - if (dd.flags & C_SKIP && (in.offset > INT64_MAX / in.bsz || - size < in.bsz * in.offset)) { - qemu_opt_set_number(opts, BLOCK_OPT_SIZE, 0, &error_abort); - } else { - qemu_opt_set_number(opts, BLOCK_OPT_SIZE, - size - in.bsz * in.offset, &error_abort); - } + qemu_opt_set_number(opts, BLOCK_OPT_SIZE, size, &error_abort); + end =3D size + in_pos; ret =3D bdrv_create(drv, out.filename, opts, &local_err); if (ret < 0) { @@ -4595,24 +4599,13 @@ static int img_dd(int argc, char **argv) goto out; } - if (dd.flags & C_SKIP && (in.offset > INT64_MAX / in.bsz || - size < in.offset * in.bsz)) { - /* We give a warning if the skip option is bigger than the input - * size and create an empty output disk image (i.e. like dd(1)). - */ - error_report("%s: cannot skip to specified offset", in.filename); - in_pos =3D size; - } else { - in_pos =3D in.offset * in.bsz; - } - in.buf =3D g_new(uint8_t, in.bsz); - for (out_pos =3D 0; in_pos < size; block_count++) { + for (out_pos =3D 0; in_pos < end; block_count++) { int in_ret, out_ret; - if (in_pos + in.bsz > size) { - in_ret =3D blk_pread(blk1, in_pos, in.buf, size - in_pos); + if (in_pos + in.bsz > end) { + in_ret =3D blk_pread(blk1, in_pos, in.buf, end - in_pos); } else { in_ret =3D blk_pread(blk1, in_pos, in.buf, in.bsz); } diff --git a/tests/qemu-iotests/160 b/tests/qemu-iotests/160 index 5c910e5bfc1..48380a3aafc 100755 --- a/tests/qemu-iotests/160 +++ b/tests/qemu-iotests/160 @@ -44,6 +44,7 @@ _supported_os Linux TEST_SKIP_BLOCKS=3D"1 2 30 30K" for skip in $TEST_SKIP_BLOCKS; do + for count in '' 'count=3D1 '; do echo echo "=3D=3D Creating image =3D=3D" @@ -53,17 +54,19 @@ for skip in $TEST_SKIP_BLOCKS; do $QEMU_IO -c "write -P 0xa 24 512k" "$TEST_IMG" | _filter_qemu_io echo - echo "=3D=3D Converting the image with dd with skip=3D$skip =3D=3D" + echo "=3D=3D Converting the image with dd with ${count}skip=3D$skip = =3D=3D" - $QEMU_IMG dd if=3D"$TEST_IMG" of=3D"$TEST_IMG.out" skip=3D"$skip" -O "= $IMGFMT" \ + $QEMU_IMG dd if=3D"$TEST_IMG" of=3D"$TEST_IMG.out" $count skip=3D"$ski= p" -O "$IMGFMT" \ 2> /dev/null TEST_IMG=3D"$TEST_IMG.out" _check_test_img - dd if=3D"$TEST_IMG" of=3D"$TEST_IMG.out.dd" skip=3D"$skip" status=3Dno= ne + dd if=3D"$TEST_IMG" of=3D"$TEST_IMG.out.dd" $count skip=3D"$skip" stat= us=3Dnone echo echo "=3D=3D Compare the images with qemu-img compare =3D=3D" $QEMU_IMG compare "$TEST_IMG.out.dd" "$TEST_IMG.out" + rm "$TEST_IMG.out.dd" + done done echo diff --git a/tests/qemu-iotests/160.out b/tests/qemu-iotests/160.out index 9cedc803566..6147a8493d6 100644 --- a/tests/qemu-iotests/160.out +++ b/tests/qemu-iotests/160.out @@ -18,6 +18,18 @@ No errors were found on the image. wrote 524288/524288 bytes at offset 24 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D Converting the image with dd with count=3D1 skip=3D1 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + =3D=3D Converting the image with dd with skip=3D2 =3D=3D No errors were found on the image. @@ -30,6 +42,18 @@ No errors were found on the image. wrote 524288/524288 bytes at offset 24 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D Converting the image with dd with count=3D1 skip=3D2 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + =3D=3D Converting the image with dd with skip=3D30 =3D=3D No errors were found on the image. @@ -42,10 +66,34 @@ No errors were found on the image. wrote 524288/524288 bytes at offset 24 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D Converting the image with dd with count=3D1 skip=3D30 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + =3D=3D Converting the image with dd with skip=3D30K =3D=3D No errors were found on the image. =3D=3D Compare the images with qemu-img compare =3D=3D Images are identical. +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D30K =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + *** done --=20 2.14.4 From nobody Sun Oct 5 19:22:51 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1534301983531262.05516686659735; Tue, 14 Aug 2018 19:59:43 -0700 (PDT) Received: from localhost ([::1]:47008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpm2A-0003fw-Ec for importer@patchew.org; Tue, 14 Aug 2018 22:59:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fplz4-0001ij-E3 for qemu-devel@nongnu.org; Tue, 14 Aug 2018 22:56:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fplz2-00078Y-6q for qemu-devel@nongnu.org; Tue, 14 Aug 2018 22:56:30 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37302 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fplyx-00077H-AS; Tue, 14 Aug 2018 22:56:23 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F043D402178A; Wed, 15 Aug 2018 02:56:22 +0000 (UTC) Received: from red.redhat.com (ovpn-120-153.rdu2.redhat.com [10.10.120.153]) by smtp.corp.redhat.com (Postfix) with ESMTP id 48DEE10B7CB7; Wed, 15 Aug 2018 02:56:22 +0000 (UTC) From: Eric Blake To: qemu-devel@nongnu.org Date: Tue, 14 Aug 2018 21:56:14 -0500 Message-Id: <20180815025614.53588-3-eblake@redhat.com> In-Reply-To: <20180815025614.53588-1-eblake@redhat.com> References: <20180815025614.53588-1-eblake@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 15 Aug 2018 02:56:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 15 Aug 2018 02:56:23 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'eblake@redhat.com' RCPT:'' X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.187.233.73 Subject: [Qemu-devel] [PATCH 2/2] qemu-img: Add dd seek= option X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , fullmanet@gmail.com, qemu-block@nongnu.org, mreitz@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RDMRC_1 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" For feature parity with dd, we want to be able to specify the offset within the output file, just as we can specify the offset for the input (in particular, this makes copying a subset range of guest-visible bytes from one file to another much easier). The code style for 'qemu-img dd' was pretty hard to read; unfortunately this patch focuses only on adding the new feature in the existing style rather than trying to improve the overall flow, other than switching octal constants to hex. Oh well. Also, switch the test to use an offset of 0 instead of 1, to test skip=3D and seek=3D on their own; as it is, this is effectively quadrupling the test runtime, which starts to make this test borderline on whether it should still belong to './check -g quick'. And I didn't bother to reindent the test shell code for the new nested loop. Signed-off-by: Eric Blake --- qemu-img.c | 41 ++++-- tests/qemu-iotests/160 | 12 +- tests/qemu-iotests/160.out | 304 +++++++++++++++++++++++++++++++++++++++++= ++-- 3 files changed, 336 insertions(+), 21 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index d72f0f0ec94..ee01a18f331 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -195,7 +195,8 @@ static void QEMU_NORETURN help(void) " 'count=3DN' copy only N input blocks\n" " 'if=3DFILE' read from FILE\n" " 'of=3DFILE' write to FILE\n" - " 'skip=3DN' skip N bs-sized blocks at the start of input\n"; + " 'skip=3DN' skip N bs-sized blocks at the start of input\n" + " 'seek=3DN' skip N bs-sized blocks at the start of output\n"; printf("%s\nSupported formats:", help_msg); bdrv_iterate_format(format_print, NULL); @@ -4296,11 +4297,12 @@ out: return 0; } -#define C_BS 01 -#define C_COUNT 02 -#define C_IF 04 -#define C_OF 010 -#define C_SKIP 020 +#define C_BS 0x1 +#define C_COUNT 0x2 +#define C_IF 0x4 +#define C_OF 0x8 +#define C_SKIP 0x10 +#define C_SEEK 0x20 struct DdInfo { unsigned int flags; @@ -4383,6 +4385,20 @@ static int img_dd_skip(const char *arg, return 0; } +static int img_dd_seek(const char *arg, + struct DdIo *in, struct DdIo *out, + struct DdInfo *dd) +{ + out->offset =3D cvtnum(arg); + + if (out->offset < 0) { + error_report("invalid number: '%s'", arg); + return 1; + } + + return 0; +} + static int img_dd(int argc, char **argv) { int ret =3D 0; @@ -4399,6 +4415,7 @@ static int img_dd(int argc, char **argv) const char *fmt =3D NULL; int64_t size =3D 0; int64_t block_count =3D 0, out_pos, in_pos, end; + int64_t seek =3D 0; bool force_share =3D false; struct DdInfo dd =3D { .flags =3D 0, @@ -4423,6 +4440,7 @@ static int img_dd(int argc, char **argv) { "if", img_dd_if, C_IF }, { "of", img_dd_of, C_OF }, { "skip", img_dd_skip, C_SKIP }, + { "seek", img_dd_seek, C_SEEK }, { NULL, NULL, 0 } }; const struct option long_options[] =3D { @@ -4574,7 +4592,14 @@ static int img_dd(int argc, char **argv) size =3D dd.count * in.bsz; } - qemu_opt_set_number(opts, BLOCK_OPT_SIZE, size, &error_abort); + if (dd.flags & C_SEEK && out.offset * out.bsz > INT64_MAX - size) { + error_report("Seek too large for '%s'", out.filename); + ret =3D -1; + goto out; + } + seek =3D out.offset * out.bsz; + + qemu_opt_set_number(opts, BLOCK_OPT_SIZE, size + seek, &error_abort); end =3D size + in_pos; ret =3D bdrv_create(drv, out.filename, opts, &local_err); @@ -4617,7 +4642,7 @@ static int img_dd(int argc, char **argv) } in_pos +=3D in_ret; - out_ret =3D blk_pwrite(blk2, out_pos, in.buf, in_ret, 0); + out_ret =3D blk_pwrite(blk2, out_pos + seek, in.buf, in_ret, 0); if (out_ret < 0) { error_report("error while writing to output image file: %s", diff --git a/tests/qemu-iotests/160 b/tests/qemu-iotests/160 index 48380a3aafc..0096911e75e 100755 --- a/tests/qemu-iotests/160 +++ b/tests/qemu-iotests/160 @@ -1,6 +1,6 @@ #! /bin/bash # -# qemu-img dd test for the skip option +# qemu-img dd test for the skip/seek option # # Copyright (C) 2016 Reda Sallahi # @@ -41,10 +41,11 @@ _supported_fmt raw _supported_proto file _supported_os Linux -TEST_SKIP_BLOCKS=3D"1 2 30 30K" +TEST_SKIP_BLOCKS=3D"0 2 30 30K" for skip in $TEST_SKIP_BLOCKS; do for count in '' 'count=3D1 '; do + for seek in $TEST_SKIP_BLOCKS; do echo echo "=3D=3D Creating image =3D=3D" @@ -54,18 +55,19 @@ for skip in $TEST_SKIP_BLOCKS; do $QEMU_IO -c "write -P 0xa 24 512k" "$TEST_IMG" | _filter_qemu_io echo - echo "=3D=3D Converting the image with dd with ${count}skip=3D$skip = =3D=3D" + echo "=3D=3D Converting the image with dd with ${count}skip=3D$skip se= ek=3D$seek =3D=3D" - $QEMU_IMG dd if=3D"$TEST_IMG" of=3D"$TEST_IMG.out" $count skip=3D"$ski= p" -O "$IMGFMT" \ + $QEMU_IMG dd if=3D"$TEST_IMG" of=3D"$TEST_IMG.out" $count skip=3D"$ski= p" seek=3D"$seek" -O "$IMGFMT" \ 2> /dev/null TEST_IMG=3D"$TEST_IMG.out" _check_test_img - dd if=3D"$TEST_IMG" of=3D"$TEST_IMG.out.dd" $count skip=3D"$skip" stat= us=3Dnone + dd if=3D"$TEST_IMG" of=3D"$TEST_IMG.out.dd" $count skip=3D"$skip" seek= =3D"$seek" status=3Dnone echo echo "=3D=3D Compare the images with qemu-img compare =3D=3D" $QEMU_IMG compare "$TEST_IMG.out.dd" "$TEST_IMG.out" rm "$TEST_IMG.out.dd" + done done done diff --git a/tests/qemu-iotests/160.out b/tests/qemu-iotests/160.out index 6147a8493d6..b93ecad05cf 100644 --- a/tests/qemu-iotests/160.out +++ b/tests/qemu-iotests/160.out @@ -6,7 +6,7 @@ No errors were found on the image. wrote 524288/524288 bytes at offset 24 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -=3D=3D Converting the image with dd with skip=3D1 =3D=3D +=3D=3D Converting the image with dd with skip=3D0 seek=3D0 =3D=3D No errors were found on the image. =3D=3D Compare the images with qemu-img compare =3D=3D @@ -18,7 +18,7 @@ No errors were found on the image. wrote 524288/524288 bytes at offset 24 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -=3D=3D Converting the image with dd with count=3D1 skip=3D1 =3D=3D +=3D=3D Converting the image with dd with skip=3D0 seek=3D2 =3D=3D No errors were found on the image. =3D=3D Compare the images with qemu-img compare =3D=3D @@ -30,7 +30,7 @@ No errors were found on the image. wrote 524288/524288 bytes at offset 24 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -=3D=3D Converting the image with dd with skip=3D2 =3D=3D +=3D=3D Converting the image with dd with skip=3D0 seek=3D30 =3D=3D No errors were found on the image. =3D=3D Compare the images with qemu-img compare =3D=3D @@ -42,7 +42,7 @@ No errors were found on the image. wrote 524288/524288 bytes at offset 24 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -=3D=3D Converting the image with dd with count=3D1 skip=3D2 =3D=3D +=3D=3D Converting the image with dd with skip=3D0 seek=3D30K =3D=3D No errors were found on the image. =3D=3D Compare the images with qemu-img compare =3D=3D @@ -54,7 +54,7 @@ No errors were found on the image. wrote 524288/524288 bytes at offset 24 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -=3D=3D Converting the image with dd with skip=3D30 =3D=3D +=3D=3D Converting the image with dd with count=3D1 skip=3D0 seek=3D0 =3D= =3D No errors were found on the image. =3D=3D Compare the images with qemu-img compare =3D=3D @@ -66,7 +66,7 @@ No errors were found on the image. wrote 524288/524288 bytes at offset 24 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -=3D=3D Converting the image with dd with count=3D1 skip=3D30 =3D=3D +=3D=3D Converting the image with dd with count=3D1 skip=3D0 seek=3D2 =3D= =3D No errors were found on the image. =3D=3D Compare the images with qemu-img compare =3D=3D @@ -78,7 +78,7 @@ No errors were found on the image. wrote 524288/524288 bytes at offset 24 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -=3D=3D Converting the image with dd with skip=3D30K =3D=3D +=3D=3D Converting the image with dd with count=3D1 skip=3D0 seek=3D30 =3D= =3D No errors were found on the image. =3D=3D Compare the images with qemu-img compare =3D=3D @@ -90,7 +90,295 @@ No errors were found on the image. wrote 524288/524288 bytes at offset 24 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -=3D=3D Converting the image with dd with count=3D1 skip=3D30K =3D=3D +=3D=3D Converting the image with dd with count=3D1 skip=3D0 seek=3D30K =3D= =3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D2 seek=3D0 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D2 seek=3D2 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D2 seek=3D30 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D2 seek=3D30K =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D2 seek=3D0 =3D= =3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D2 seek=3D2 =3D= =3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D2 seek=3D30 =3D= =3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D2 seek=3D30K =3D= =3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D30 seek=3D0 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D30 seek=3D2 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D30 seek=3D30 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D30 seek=3D30K =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D30 seek=3D0 =3D= =3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D30 seek=3D2 =3D= =3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D30 seek=3D30 =3D= =3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D30 seek=3D30K = =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D30K seek=3D0 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D30K seek=3D2 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D30K seek=3D30 =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with skip=3D30K seek=3D30K =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D30K seek=3D0 =3D= =3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D30K seek=3D2 =3D= =3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D30K seek=3D30 = =3D=3D +No errors were found on the image. + +=3D=3D Compare the images with qemu-img compare =3D=3D +Images are identical. + +=3D=3D Creating image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 +No errors were found on the image. +wrote 524288/524288 bytes at offset 24 +512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +=3D=3D Converting the image with dd with count=3D1 skip=3D30K seek=3D30K = =3D=3D No errors were found on the image. =3D=3D Compare the images with qemu-img compare =3D=3D --=20 2.14.4