From nobody Thu Dec 18 13:24:03 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.zoho.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; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1486864310876195.5298063331935; Sat, 11 Feb 2017 17:51:50 -0800 (PST) Received: from localhost ([::1]:50300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccjKP-0001xL-BY for importer@patchew.org; Sat, 11 Feb 2017 20:51:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccj8A-0007GD-NU for qemu-devel@nongnu.org; Sat, 11 Feb 2017 20:39:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccj86-0007Mx-No for qemu-devel@nongnu.org; Sat, 11 Feb 2017 20:39:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44658) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ccj80-0007Kc-P5; Sat, 11 Feb 2017 20:39:01 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D2A2B3A76AF; Sun, 12 Feb 2017 01:39:00 +0000 (UTC) Received: from localhost (ovpn-204-18.brq.redhat.com [10.40.204.18]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v1C1cwGR013353 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 11 Feb 2017 20:38:59 -0500 From: Max Reitz To: qemu-block@nongnu.org Date: Sun, 12 Feb 2017 02:38:38 +0100 Message-Id: <20170212013844.6560-6-mreitz@redhat.com> In-Reply-To: <20170212013440.5919-1-mreitz@redhat.com> References: <20170212013440.5919-1-mreitz@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Sun, 12 Feb 2017 01:39:00 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 15/21] qemu-io: Return non-zero exit code on failure 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: Peter Maydell , qemu-devel@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Nir Soffer The result of openfile was not checked, leading to failure deep in the actual command with confusing error message, and exiting with exit code 0. Here is a simple example - trying to read with the wrong format: $ touch file $ qemu-io -f qcow2 -c 'read -P 1 0 1024' file; echo $? can't open device file: Image is not in qcow2 format no file open, try 'help open' 0 With this patch, we fail earlier with exit code 1: $ ./qemu-io -f qcow2 -c 'read -P 1 0 1024' file; echo $? can't open device file: Image is not in qcow2 format 1 Failing earlier, we don't log this error now: no file open, try 'help open' But some tests expected it; the line was removed from the test output. Signed-off-by: Nir Soffer Reviewed-by: Eric Blake Message-id: 20170201003120.23378-2-nirsof@gmail.com Reviewed-by: Max Reitz Signed-off-by: Max Reitz --- qemu-io.c | 8 ++++++-- tests/qemu-iotests/059.out | 3 --- tests/qemu-iotests/070.out | 1 - tests/qemu-iotests/075.out | 7 ------- tests/qemu-iotests/076.out | 3 --- tests/qemu-iotests/078.out | 6 ------ tests/qemu-iotests/080.out | 18 ------------------ tests/qemu-iotests/083.out | 17 ----------------- tests/qemu-iotests/088.out | 6 ------ tests/qemu-iotests/092.out | 12 ------------ tests/qemu-iotests/116.out | 7 ------- tests/qemu-iotests/131.out | 1 - tests/qemu-iotests/140.out | 1 - 13 files changed, 6 insertions(+), 84 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index 23a229f880..427cbaef57 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -595,13 +595,17 @@ int main(int argc, char **argv) exit(1); } opts =3D qemu_opts_to_qdict(qopts, NULL); - openfile(NULL, flags, writethrough, opts); + if (openfile(NULL, flags, writethrough, opts)) { + exit(1); + } } else { if (format) { opts =3D qdict_new(); qdict_put(opts, "driver", qstring_from_str(format)); } - openfile(argv[optind], flags, writethrough, opts); + if (openfile(argv[optind], flags, writethrough, opts)) { + exit(1); + } } } command_loop(); diff --git a/tests/qemu-iotests/059.out b/tests/qemu-iotests/059.out index 19bd50de1e..6154509bc3 100644 --- a/tests/qemu-iotests/059.out +++ b/tests/qemu-iotests/059.out @@ -3,17 +3,14 @@ QA output created by 059 =3D=3D=3D Testing invalid granularity =3D=3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.vmdk: Invalid granularity, image may be corru= pt -no file open, try 'help open' =20 =3D=3D=3D Testing too big L2 table size =3D=3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.vmdk: L2 table size too big -no file open, try 'help open' =20 =3D=3D=3D Testing too big L1 table size =3D=3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.vmdk: L1 size too big -no file open, try 'help open' =20 =3D=3D=3D Testing monolithicFlat creation and opening =3D=3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D2147483648 subformat= =3DmonolithicFlat diff --git a/tests/qemu-iotests/070.out b/tests/qemu-iotests/070.out index 131a5b17dc..c269d99483 100644 --- a/tests/qemu-iotests/070.out +++ b/tests/qemu-iotests/070.out @@ -4,7 +4,6 @@ QA output created by 070 can't open device TEST_DIR/iotest-dirtylog-10G-4M.vhdx: VHDX image file 'T= EST_DIR/iotest-dirtylog-10G-4M.vhdx' opened read-only, but contains a log t= hat needs to be replayed To replay the log, run: qemu-img check -r all 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx' - no file open, try 'help open' =3D=3D=3D Verify open image replays log =3D=3D=3D read 18874368/18874368 bytes at offset 0 18 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) diff --git a/tests/qemu-iotests/075.out b/tests/qemu-iotests/075.out index 87beae4e3c..b234b758e0 100644 --- a/tests/qemu-iotests/075.out +++ b/tests/qemu-iotests/075.out @@ -10,29 +10,22 @@ read 512/512 bytes at offset 1048064 =20 =3D=3D block_size must be a multiple of 512 =3D=3D can't open device TEST_DIR/simple-pattern.cloop: block_size 513 must be a = multiple of 512 -no file open, try 'help open' =20 =3D=3D block_size cannot be zero =3D=3D can't open device TEST_DIR/simple-pattern.cloop: block_size cannot be zero -no file open, try 'help open' =20 =3D=3D huge block_size =3D=3D=3D can't open device TEST_DIR/simple-pattern.cloop: block_size 4294966784 mus= t be 64 MB or less -no file open, try 'help open' =20 =3D=3D offsets_size overflow =3D=3D=3D can't open device TEST_DIR/simple-pattern.cloop: n_blocks 4294967295 must = be 536870911 or less -no file open, try 'help open' =20 =3D=3D refuse images that require too many offsets =3D=3D=3D can't open device TEST_DIR/simple-pattern.cloop: image requires too many o= ffsets, try increasing block size -no file open, try 'help open' =20 =3D=3D refuse images with non-monotonically increasing offsets =3D=3D can't open device TEST_DIR/simple-pattern.cloop: offsets not monotonically= increasing at index 1, image file is corrupt -no file open, try 'help open' =20 =3D=3D refuse images with invalid compressed block size =3D=3D can't open device TEST_DIR/simple-pattern.cloop: invalid compressed block = size at index 1, image file is corrupt -no file open, try 'help open' *** done diff --git a/tests/qemu-iotests/076.out b/tests/qemu-iotests/076.out index 72645b2522..9c66c5fb46 100644 --- a/tests/qemu-iotests/076.out +++ b/tests/qemu-iotests/076.out @@ -6,15 +6,12 @@ read 65536/65536 bytes at offset 0 =20 =3D=3D Negative catalog size =3D=3D can't open device TEST_DIR/parallels-v1: Catalog too large -no file open, try 'help open' =20 =3D=3D Overflow in catalog allocation =3D=3D can't open device TEST_DIR/parallels-v1: Catalog too large -no file open, try 'help open' =20 =3D=3D Zero sectors per track =3D=3D can't open device TEST_DIR/parallels-v1: Invalid image: Zero sectors per t= rack -no file open, try 'help open' =20 =3D=3D Read from a valid v2 image =3D=3D read 65536/65536 bytes at offset 0 diff --git a/tests/qemu-iotests/078.out b/tests/qemu-iotests/078.out index 42b8a83015..c3d6aa4fe4 100644 --- a/tests/qemu-iotests/078.out +++ b/tests/qemu-iotests/078.out @@ -6,23 +6,17 @@ read 512/512 bytes at offset 0 =20 =3D=3D Negative catalog size =3D=3D can't open device TEST_DIR/empty.bochs: Catalog size is too large -no file open, try 'help open' =20 =3D=3D Overflow for catalog size * sizeof(uint32_t) =3D=3D can't open device TEST_DIR/empty.bochs: Catalog size is too large -no file open, try 'help open' =20 =3D=3D Too small catalog bitmap for image size =3D=3D can't open device TEST_DIR/empty.bochs: Catalog size is too small for this= disk size -no file open, try 'help open' can't open device TEST_DIR/empty.bochs: Catalog size is too small for this= disk size -no file open, try 'help open' =20 =3D=3D Negative extent size =3D=3D can't open device TEST_DIR/empty.bochs: Extent size 2147483648 is too large -no file open, try 'help open' =20 =3D=3D Zero extent size =3D=3D can't open device TEST_DIR/empty.bochs: Extent size must be at least 512 -no file open, try 'help open' *** done diff --git a/tests/qemu-iotests/080.out b/tests/qemu-iotests/080.out index 0daac48b12..6a7fda1356 100644 --- a/tests/qemu-iotests/080.out +++ b/tests/qemu-iotests/080.out @@ -3,46 +3,33 @@ QA output created by 080 =3D=3D Huge header size =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow2: qcow2 header exceeds cluster size -no file open, try 'help open' can't open device TEST_DIR/t.qcow2: qcow2 header exceeds cluster size -no file open, try 'help open' =20 =3D=3D Huge unknown header extension =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow2: Invalid backing file offset -no file open, try 'help open' can't open device TEST_DIR/t.qcow2: Header extension too large -no file open, try 'help open' can't open device TEST_DIR/t.qcow2: Header extension too large -no file open, try 'help open' =20 =3D=3D Huge refcount table size =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow2: Reference count table too large -no file open, try 'help open' can't open device TEST_DIR/t.qcow2: Reference count table too large -no file open, try 'help open' =20 =3D=3D Misaligned refcount table =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow2: Invalid reference count table offset -no file open, try 'help open' =20 =3D=3D Huge refcount offset =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow2: Invalid reference count table offset -no file open, try 'help open' =20 =3D=3D Invalid snapshot table =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow2: Too many snapshots -no file open, try 'help open' can't open device TEST_DIR/t.qcow2: Too many snapshots -no file open, try 'help open' can't open device TEST_DIR/t.qcow2: Invalid snapshot table offset -no file open, try 'help open' can't open device TEST_DIR/t.qcow2: Invalid snapshot table offset -no file open, try 'help open' =20 =3D=3D Hitting snapshot table size limit =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 @@ -53,13 +40,9 @@ read 512/512 bytes at offset 0 =3D=3D Invalid L1 table =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow2: Active L1 table too large -no file open, try 'help open' can't open device TEST_DIR/t.qcow2: Active L1 table too large -no file open, try 'help open' can't open device TEST_DIR/t.qcow2: Invalid L1 table offset -no file open, try 'help open' can't open device TEST_DIR/t.qcow2: Invalid L1 table offset -no file open, try 'help open' =20 =3D=3D Invalid L1 table (with internal snapshot in the image) =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 @@ -68,7 +51,6 @@ qemu-img: Could not open 'TEST_DIR/t.IMGFMT': L1 table is= too small =3D=3D Invalid backing file size =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow2: Backing file name too long -no file open, try 'help open' =20 =3D=3D Invalid L2 entry (huge physical offset) =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 diff --git a/tests/qemu-iotests/083.out b/tests/qemu-iotests/083.out index ef3d1e32a5..0c13888ba1 100644 --- a/tests/qemu-iotests/083.out +++ b/tests/qemu-iotests/083.out @@ -2,52 +2,42 @@ QA output created by 083 =3D=3D=3D Check disconnect before neg1 =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect after neg1 =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect 8 neg1 =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect 16 neg1 =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect before export =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect after export =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect 4 export =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect 12 export =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect 16 export =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect before neg2 =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect after neg2 =3D=3D=3D =20 @@ -56,12 +46,10 @@ read failed: Input/output error =3D=3D=3D Check disconnect 8 neg2 =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect 10 neg2 =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT:exportname=3Dfoo -no file open, try 'help open' =20 =3D=3D=3D Check disconnect before request =3D=3D=3D =20 @@ -99,27 +87,22 @@ read 512/512 bytes at offset 0 =3D=3D=3D Check disconnect before neg-classic =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT -no file open, try 'help open' =20 =3D=3D=3D Check disconnect 8 neg-classic =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT -no file open, try 'help open' =20 =3D=3D=3D Check disconnect 16 neg-classic =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT -no file open, try 'help open' =20 =3D=3D=3D Check disconnect 24 neg-classic =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT -no file open, try 'help open' =20 =3D=3D=3D Check disconnect 28 neg-classic =3D=3D=3D =20 can't open device nbd:127.0.0.1:PORT -no file open, try 'help open' =20 =3D=3D=3D Check disconnect after neg-classic =3D=3D=3D =20 diff --git a/tests/qemu-iotests/088.out b/tests/qemu-iotests/088.out index a2a83b8a1c..1f6bcf0abc 100644 --- a/tests/qemu-iotests/088.out +++ b/tests/qemu-iotests/088.out @@ -3,15 +3,9 @@ QA output created by 088 =3D=3D Invalid block size =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.vpc: Invalid block size 0 -no file open, try 'help open' can't open device TEST_DIR/t.vpc: Invalid block size 0 -no file open, try 'help open' can't open device TEST_DIR/t.vpc: Invalid block size 128 -no file open, try 'help open' can't open device TEST_DIR/t.vpc: Invalid block size 128 -no file open, try 'help open' can't open device TEST_DIR/t.vpc: Invalid block size 305419896 -no file open, try 'help open' can't open device TEST_DIR/t.vpc: Invalid block size 305419896 -no file open, try 'help open' *** done diff --git a/tests/qemu-iotests/092.out b/tests/qemu-iotests/092.out index e18f54c200..6eda321fc6 100644 --- a/tests/qemu-iotests/092.out +++ b/tests/qemu-iotests/092.out @@ -3,36 +3,24 @@ QA output created by 092 =3D=3D Invalid cluster size =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow: Cluster size must be between 512 and 64k -no file open, try 'help open' can't open device TEST_DIR/t.qcow: Cluster size must be between 512 and 64k -no file open, try 'help open' can't open device TEST_DIR/t.qcow: Cluster size must be between 512 and 64k -no file open, try 'help open' can't open device TEST_DIR/t.qcow: Cluster size must be between 512 and 64k -no file open, try 'help open' =20 =3D=3D Invalid L2 table size =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 6= 4k -no file open, try 'help open' can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 6= 4k -no file open, try 'help open' can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 6= 4k -no file open, try 'help open' can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 6= 4k -no file open, try 'help open' =20 =3D=3D Invalid size =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow: Image too large -no file open, try 'help open' can't open device TEST_DIR/t.qcow: Image too large -no file open, try 'help open' =20 =3D=3D Invalid backing file length =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 can't open device TEST_DIR/t.qcow: Backing file name too long -no file open, try 'help open' can't open device TEST_DIR/t.qcow: Backing file name too long -no file open, try 'help open' *** done diff --git a/tests/qemu-iotests/116.out b/tests/qemu-iotests/116.out index 1f11d4446d..24bee57783 100644 --- a/tests/qemu-iotests/116.out +++ b/tests/qemu-iotests/116.out @@ -3,35 +3,28 @@ QA output created by 116 =3D=3D truncated header cluster =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D134217728 can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid= argument -no file open, try 'help open' =20 =3D=3D invalid header magic =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D134217728 can't open device TEST_DIR/t.qed: Image not in QED format -no file open, try 'help open' =20 =3D=3D invalid cluster size =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D134217728 can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid= argument -no file open, try 'help open' =20 =3D=3D invalid table size =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D134217728 can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid= argument -no file open, try 'help open' =20 =3D=3D invalid header size =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D134217728 can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid= argument -no file open, try 'help open' =20 =3D=3D invalid L1 table offset =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D134217728 can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid= argument -no file open, try 'help open' =20 =3D=3D invalid image size =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D134217728 can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid= argument -no file open, try 'help open' *** done diff --git a/tests/qemu-iotests/131.out b/tests/qemu-iotests/131.out index ae2412ebf7..27c2c5389b 100644 --- a/tests/qemu-iotests/131.out +++ b/tests/qemu-iotests/131.out @@ -23,7 +23,6 @@ read 32768/32768 bytes at offset 0 32 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) =3D=3D Corrupt image =3D=3D can't open device TEST_DIR/t.parallels: parallels: Image was not closed co= rrectly; cannot be opened read/write -no file open, try 'help open' ERROR image was not closed correctly =20 1 errors were found on the image. diff --git a/tests/qemu-iotests/140.out b/tests/qemu-iotests/140.out index 0409cd0174..6c0445603a 100644 --- a/tests/qemu-iotests/140.out +++ b/tests/qemu-iotests/140.out @@ -9,7 +9,6 @@ read 65536/65536 bytes at offset 0 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) {"return": {}} can't open device nbd+unix:///drv?socket=3DTEST_DIR/nbd: No export with na= me 'drv' available -no file open, try 'help open' {"return": {}} {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event"= : "SHUTDOWN"} *** done --=20 2.11.0