Skip to contentSkip to conversation

Failing qemu-iotest 005 with raw

Qemu-devel Thomas Huth 3 participants 4 messages Apr 26, 2019 – Apr 28, 2019

lore
Share & tools
lore
#0 lore raw

When running iotest 005 with raw, the test currently fails for me:

005 - output mismatch (see 005.out.bad)
--- /home/thuth/devel/qemu/tests/qemu-iotests/005.out 2019-04-23
16:43:11.000000000 +0200
+++ /home/thuth/tmp/qemu-build/tests/qemu-iotests/005.out.bad 2019-04-26
11:34:11.000000000 +0200
@@ -1,13 +1,12 @@
QA output created by 005

creating large image
+qemu-img: TEST_DIR/t.IMGFMT: The image size is too large for file format 'IMGFMT'
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=5368709120000

small read
-read 4096/4096 bytes at offset 1024
-4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +read failed: Input/output error

small write
-wrote 4096/4096 bytes at offset 8192
-4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +write failed: Input/output error
*** done

Could this be fixed somehow, or should the test rather be skipped for IMGFMT=raw?

Thomas

#1 lore raw

Am 26.04.2019 um 11:41 hat Thomas Huth geschrieben:

Quoted 17 lines

When running iotest 005 with raw, the test currently fails for me:

005 - output mismatch (see 005.out.bad)
--- /home/thuth/devel/qemu/tests/qemu-iotests/005.out 2019-04-23
16:43:11.000000000 +0200
+++ /home/thuth/tmp/qemu-build/tests/qemu-iotests/005.out.bad 2019-04-26
11:34:11.000000000 +0200

(quoted diff) +1 -0
@@ -1,13 +1,12 @@
 QA output created by 005
 
 creating large image
+qemu-img: TEST_DIR/t.IMGFMT: The image size is too large for file

format 'IMGFMT'
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=5368709120000
[...]

Quoted 2 lines

Could this be fixed somehow, or should the test rather be skipped for IMGFMT=raw?

The test passes for me on XFS. Looks like the raw driver can handle large image files, but your host filesystem can't.

We would have to check whether the host filesystem can support large files and skip the test if it can't. I'm not sure how to do that. But actually, this isn't testing anything interesting for raw, so just unconditionally disabling the test for raw could be reasonable enough.

Kevin

#2 lore raw
Quoted 9 lines · Kevin Wolf
Quoted 8 lines

creating large image
+qemu-img: TEST_DIR/t.IMGFMT: The image size is too large for file format 'IMGFMT'
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=5368709120000
[...]

Could this be fixed somehow, or should the test rather be skipped for IMGFMT=raw?

Quoted 7 lines

The test passes for me on XFS. Looks like the raw driver can handle large image files, but your host filesystem can't.

We would have to check whether the host filesystem can support large files and skip the test if it can't. I'm not sure how to do that. But actually, this isn't testing anything interesting for raw, so just unconditionally disabling the test for raw could be reasonable enough.

iotest 220 in commit 3b94c343 can serve as such an example (it skips the test on at least ext4, while passing on tmpfs which allows larger sparse files).

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org
#3 lore raw
Quoted 14 lines · Eric Blake
Quoted 12 lines · Kevin Wolf
Quoted 8 lines

creating large image
+qemu-img: TEST_DIR/t.IMGFMT: The image size is too large for file format 'IMGFMT'
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=5368709120000
[...]

Could this be fixed somehow, or should the test rather be skipped for IMGFMT=raw?

The test passes for me on XFS. Looks like the raw driver can handle large image files, but your host filesystem can't.

Quoted 8 lines
Quoted 4 lines

We would have to check whether the host filesystem can support large files and skip the test if it can't. I'm not sure how to do that. But actually, this isn't testing anything interesting for raw, so just unconditionally disabling the test for raw could be reasonable enough.

iotest 220 in commit 3b94c343 can serve as such an example (it skips the test on at least ext4, while passing on tmpfs which allows larger sparse files).

That should do the trick, thanks. I'll send a patch.

Thomas