qemu-io: Return non-zero exit code on failure
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 <nirsof@gmail.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20170201003120.23378-2-nirsof@gmail.com Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
f67409a5bb
commit
b7aa131519
@ -595,13 +595,17 @@ int main(int argc, char **argv)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
opts = qemu_opts_to_qdict(qopts, NULL);
|
opts = qemu_opts_to_qdict(qopts, NULL);
|
||||||
openfile(NULL, flags, writethrough, opts);
|
if (openfile(NULL, flags, writethrough, opts)) {
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (format) {
|
if (format) {
|
||||||
opts = qdict_new();
|
opts = qdict_new();
|
||||||
qdict_put(opts, "driver", qstring_from_str(format));
|
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();
|
command_loop();
|
||||||
|
@ -3,17 +3,14 @@ QA output created by 059
|
|||||||
=== Testing invalid granularity ===
|
=== Testing invalid granularity ===
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.vmdk: Invalid granularity, image may be corrupt
|
can't open device TEST_DIR/t.vmdk: Invalid granularity, image may be corrupt
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Testing too big L2 table size ===
|
=== Testing too big L2 table size ===
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.vmdk: L2 table size too big
|
can't open device TEST_DIR/t.vmdk: L2 table size too big
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Testing too big L1 table size ===
|
=== Testing too big L1 table size ===
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.vmdk: L1 size too big
|
can't open device TEST_DIR/t.vmdk: L1 size too big
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Testing monolithicFlat creation and opening ===
|
=== Testing monolithicFlat creation and opening ===
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2147483648 subformat=monolithicFlat
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2147483648 subformat=monolithicFlat
|
||||||
|
@ -4,7 +4,6 @@ QA output created by 070
|
|||||||
can't open device TEST_DIR/iotest-dirtylog-10G-4M.vhdx: VHDX image file 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx' opened read-only, but contains a log that needs to be replayed
|
can't open device TEST_DIR/iotest-dirtylog-10G-4M.vhdx: VHDX image file 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx' opened read-only, but contains a log that needs to be replayed
|
||||||
To replay the log, run:
|
To replay the log, run:
|
||||||
qemu-img check -r all 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx'
|
qemu-img check -r all 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx'
|
||||||
no file open, try 'help open'
|
|
||||||
=== Verify open image replays log ===
|
=== Verify open image replays log ===
|
||||||
read 18874368/18874368 bytes at offset 0
|
read 18874368/18874368 bytes at offset 0
|
||||||
18 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
18 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||||
|
@ -10,29 +10,22 @@ read 512/512 bytes at offset 1048064
|
|||||||
|
|
||||||
== block_size must be a multiple of 512 ==
|
== block_size must be a multiple of 512 ==
|
||||||
can't open device TEST_DIR/simple-pattern.cloop: block_size 513 must be a multiple of 512
|
can't open device TEST_DIR/simple-pattern.cloop: block_size 513 must be a multiple of 512
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== block_size cannot be zero ==
|
== block_size cannot be zero ==
|
||||||
can't open device TEST_DIR/simple-pattern.cloop: block_size cannot be zero
|
can't open device TEST_DIR/simple-pattern.cloop: block_size cannot be zero
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== huge block_size ===
|
== huge block_size ===
|
||||||
can't open device TEST_DIR/simple-pattern.cloop: block_size 4294966784 must be 64 MB or less
|
can't open device TEST_DIR/simple-pattern.cloop: block_size 4294966784 must be 64 MB or less
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== offsets_size overflow ===
|
== offsets_size overflow ===
|
||||||
can't open device TEST_DIR/simple-pattern.cloop: n_blocks 4294967295 must be 536870911 or less
|
can't open device TEST_DIR/simple-pattern.cloop: n_blocks 4294967295 must be 536870911 or less
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== refuse images that require too many offsets ===
|
== refuse images that require too many offsets ===
|
||||||
can't open device TEST_DIR/simple-pattern.cloop: image requires too many offsets, try increasing block size
|
can't open device TEST_DIR/simple-pattern.cloop: image requires too many offsets, try increasing block size
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== refuse images with non-monotonically increasing offsets ==
|
== refuse images with non-monotonically increasing offsets ==
|
||||||
can't open device TEST_DIR/simple-pattern.cloop: offsets not monotonically increasing at index 1, image file is corrupt
|
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'
|
|
||||||
|
|
||||||
== refuse images with invalid compressed block size ==
|
== refuse images with invalid compressed block size ==
|
||||||
can't open device TEST_DIR/simple-pattern.cloop: invalid compressed block size at index 1, image file is corrupt
|
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
|
*** done
|
||||||
|
@ -6,15 +6,12 @@ read 65536/65536 bytes at offset 0
|
|||||||
|
|
||||||
== Negative catalog size ==
|
== Negative catalog size ==
|
||||||
can't open device TEST_DIR/parallels-v1: Catalog too large
|
can't open device TEST_DIR/parallels-v1: Catalog too large
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Overflow in catalog allocation ==
|
== Overflow in catalog allocation ==
|
||||||
can't open device TEST_DIR/parallels-v1: Catalog too large
|
can't open device TEST_DIR/parallels-v1: Catalog too large
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Zero sectors per track ==
|
== Zero sectors per track ==
|
||||||
can't open device TEST_DIR/parallels-v1: Invalid image: Zero sectors per track
|
can't open device TEST_DIR/parallels-v1: Invalid image: Zero sectors per track
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Read from a valid v2 image ==
|
== Read from a valid v2 image ==
|
||||||
read 65536/65536 bytes at offset 0
|
read 65536/65536 bytes at offset 0
|
||||||
|
@ -6,23 +6,17 @@ read 512/512 bytes at offset 0
|
|||||||
|
|
||||||
== Negative catalog size ==
|
== Negative catalog size ==
|
||||||
can't open device TEST_DIR/empty.bochs: Catalog size is too large
|
can't open device TEST_DIR/empty.bochs: Catalog size is too large
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Overflow for catalog size * sizeof(uint32_t) ==
|
== Overflow for catalog size * sizeof(uint32_t) ==
|
||||||
can't open device TEST_DIR/empty.bochs: Catalog size is too large
|
can't open device TEST_DIR/empty.bochs: Catalog size is too large
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Too small catalog bitmap for image size ==
|
== Too small catalog bitmap for image size ==
|
||||||
can't open device TEST_DIR/empty.bochs: Catalog size is too small for this disk size
|
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
|
can't open device TEST_DIR/empty.bochs: Catalog size is too small for this disk size
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Negative extent size ==
|
== Negative extent size ==
|
||||||
can't open device TEST_DIR/empty.bochs: Extent size 2147483648 is too large
|
can't open device TEST_DIR/empty.bochs: Extent size 2147483648 is too large
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Zero extent size ==
|
== Zero extent size ==
|
||||||
can't open device TEST_DIR/empty.bochs: Extent size must be at least 512
|
can't open device TEST_DIR/empty.bochs: Extent size must be at least 512
|
||||||
no file open, try 'help open'
|
|
||||||
*** done
|
*** done
|
||||||
|
@ -3,46 +3,33 @@ QA output created by 080
|
|||||||
== Huge header size ==
|
== Huge header size ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow2: qcow2 header exceeds cluster size
|
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
|
can't open device TEST_DIR/t.qcow2: qcow2 header exceeds cluster size
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Huge unknown header extension ==
|
== Huge unknown header extension ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow2: Invalid backing file offset
|
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
|
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
|
can't open device TEST_DIR/t.qcow2: Header extension too large
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Huge refcount table size ==
|
== Huge refcount table size ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow2: Reference count table too large
|
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
|
can't open device TEST_DIR/t.qcow2: Reference count table too large
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Misaligned refcount table ==
|
== Misaligned refcount table ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow2: Invalid reference count table offset
|
can't open device TEST_DIR/t.qcow2: Invalid reference count table offset
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Huge refcount offset ==
|
== Huge refcount offset ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow2: Invalid reference count table offset
|
can't open device TEST_DIR/t.qcow2: Invalid reference count table offset
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Invalid snapshot table ==
|
== Invalid snapshot table ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow2: Too many snapshots
|
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
|
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
|
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
|
can't open device TEST_DIR/t.qcow2: Invalid snapshot table offset
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Hitting snapshot table size limit ==
|
== Hitting snapshot table size limit ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
@ -53,13 +40,9 @@ read 512/512 bytes at offset 0
|
|||||||
== Invalid L1 table ==
|
== Invalid L1 table ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow2: Active L1 table too large
|
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
|
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
|
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
|
can't open device TEST_DIR/t.qcow2: Invalid L1 table offset
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Invalid L1 table (with internal snapshot in the image) ==
|
== Invalid L1 table (with internal snapshot in the image) ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
@ -68,7 +51,6 @@ qemu-img: Could not open 'TEST_DIR/t.IMGFMT': L1 table is too small
|
|||||||
== Invalid backing file size ==
|
== Invalid backing file size ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow2: Backing file name too long
|
can't open device TEST_DIR/t.qcow2: Backing file name too long
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Invalid L2 entry (huge physical offset) ==
|
== Invalid L2 entry (huge physical offset) ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
|
@ -2,52 +2,42 @@ QA output created by 083
|
|||||||
=== Check disconnect before neg1 ===
|
=== Check disconnect before neg1 ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect after neg1 ===
|
=== Check disconnect after neg1 ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect 8 neg1 ===
|
=== Check disconnect 8 neg1 ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect 16 neg1 ===
|
=== Check disconnect 16 neg1 ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect before export ===
|
=== Check disconnect before export ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect after export ===
|
=== Check disconnect after export ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect 4 export ===
|
=== Check disconnect 4 export ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect 12 export ===
|
=== Check disconnect 12 export ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect 16 export ===
|
=== Check disconnect 16 export ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect before neg2 ===
|
=== Check disconnect before neg2 ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect after neg2 ===
|
=== Check disconnect after neg2 ===
|
||||||
|
|
||||||
@ -56,12 +46,10 @@ read failed: Input/output error
|
|||||||
=== Check disconnect 8 neg2 ===
|
=== Check disconnect 8 neg2 ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect 10 neg2 ===
|
=== Check disconnect 10 neg2 ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
can't open device nbd:127.0.0.1:PORT:exportname=foo
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect before request ===
|
=== Check disconnect before request ===
|
||||||
|
|
||||||
@ -99,27 +87,22 @@ read 512/512 bytes at offset 0
|
|||||||
=== Check disconnect before neg-classic ===
|
=== Check disconnect before neg-classic ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT
|
can't open device nbd:127.0.0.1:PORT
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect 8 neg-classic ===
|
=== Check disconnect 8 neg-classic ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT
|
can't open device nbd:127.0.0.1:PORT
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect 16 neg-classic ===
|
=== Check disconnect 16 neg-classic ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT
|
can't open device nbd:127.0.0.1:PORT
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect 24 neg-classic ===
|
=== Check disconnect 24 neg-classic ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT
|
can't open device nbd:127.0.0.1:PORT
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect 28 neg-classic ===
|
=== Check disconnect 28 neg-classic ===
|
||||||
|
|
||||||
can't open device nbd:127.0.0.1:PORT
|
can't open device nbd:127.0.0.1:PORT
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
=== Check disconnect after neg-classic ===
|
=== Check disconnect after neg-classic ===
|
||||||
|
|
||||||
|
@ -3,15 +3,9 @@ QA output created by 088
|
|||||||
== Invalid block size ==
|
== Invalid block size ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.vpc: Invalid block size 0
|
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
|
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
|
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
|
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
|
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
|
can't open device TEST_DIR/t.vpc: Invalid block size 305419896
|
||||||
no file open, try 'help open'
|
|
||||||
*** done
|
*** done
|
||||||
|
@ -3,36 +3,24 @@ QA output created by 092
|
|||||||
== Invalid cluster size ==
|
== Invalid cluster size ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow: Cluster size must be between 512 and 64k
|
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
|
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
|
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
|
can't open device TEST_DIR/t.qcow: Cluster size must be between 512 and 64k
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Invalid L2 table size ==
|
== Invalid L2 table size ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
|
can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
|
||||||
no file open, try 'help open'
|
|
||||||
can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
|
can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
|
||||||
no file open, try 'help open'
|
|
||||||
can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
|
can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
|
||||||
no file open, try 'help open'
|
|
||||||
can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
|
can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Invalid size ==
|
== Invalid size ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow: Image too large
|
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
|
can't open device TEST_DIR/t.qcow: Image too large
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== Invalid backing file length ==
|
== Invalid backing file length ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||||||
can't open device TEST_DIR/t.qcow: Backing file name too long
|
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
|
can't open device TEST_DIR/t.qcow: Backing file name too long
|
||||||
no file open, try 'help open'
|
|
||||||
*** done
|
*** done
|
||||||
|
@ -3,35 +3,28 @@ QA output created by 116
|
|||||||
== truncated header cluster ==
|
== truncated header cluster ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
||||||
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== invalid header magic ==
|
== invalid header magic ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
||||||
can't open device TEST_DIR/t.qed: Image not in QED format
|
can't open device TEST_DIR/t.qed: Image not in QED format
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== invalid cluster size ==
|
== invalid cluster size ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
||||||
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== invalid table size ==
|
== invalid table size ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
||||||
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== invalid header size ==
|
== invalid header size ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
||||||
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== invalid L1 table offset ==
|
== invalid L1 table offset ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
||||||
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
||||||
no file open, try 'help open'
|
|
||||||
|
|
||||||
== invalid image size ==
|
== invalid image size ==
|
||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
||||||
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
can't open device TEST_DIR/t.qed: Could not open 'TEST_DIR/t.qed': Invalid argument
|
||||||
no file open, try 'help open'
|
|
||||||
*** done
|
*** done
|
||||||
|
@ -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)
|
32 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||||
== Corrupt image ==
|
== Corrupt image ==
|
||||||
can't open device TEST_DIR/t.parallels: parallels: Image was not closed correctly; cannot be opened read/write
|
can't open device TEST_DIR/t.parallels: parallels: Image was not closed correctly; cannot be opened read/write
|
||||||
no file open, try 'help open'
|
|
||||||
ERROR image was not closed correctly
|
ERROR image was not closed correctly
|
||||||
|
|
||||||
1 errors were found on the image.
|
1 errors were found on the image.
|
||||||
|
@ -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)
|
64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||||
{"return": {}}
|
{"return": {}}
|
||||||
can't open device nbd+unix:///drv?socket=TEST_DIR/nbd: No export with name 'drv' available
|
can't open device nbd+unix:///drv?socket=TEST_DIR/nbd: No export with name 'drv' available
|
||||||
no file open, try 'help open'
|
|
||||||
{"return": {}}
|
{"return": {}}
|
||||||
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"}
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"}
|
||||||
*** done
|
*** done
|
||||||
|
Loading…
Reference in New Issue
Block a user