aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/221.out
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2018-06-11 16:39:27 -0500
committerKevin Wolf <kwolf@redhat.com>2018-06-15 14:49:44 +0200
commitc6a9d2f6f9bc0c163b3a3073126464a2446bad5f (patch)
tree2babf9bc80288df34290cb7c9897f2daf027b032 /tests/qemu-iotests/221.out
parente0b371ed5e2db079051139136fd0478728b6a58f (diff)
downloadqemu-c6a9d2f6f9bc0c163b3a3073126464a2446bad5f.zip
qemu-c6a9d2f6f9bc0c163b3a3073126464a2446bad5f.tar.gz
qemu-c6a9d2f6f9bc0c163b3a3073126464a2446bad5f.tar.bz2
iotests: Add test 221 to catch qemu-img map regression
Although qemu-img creates aligned files (by rounding up), it must also gracefully handle files that are not sector-aligned. Test that the bug fixed in the previous patch does not recur. It's a bit annoying that we can see the (implicit) hole past the end of the file on to the next sector boundary, so if we ever reach the point where we report a byte-accurate size rather than our current behavior of always rounding up, this test will probably need a slight modification. Signed-off-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/221.out')
-rw-r--r--tests/qemu-iotests/221.out16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/qemu-iotests/221.out b/tests/qemu-iotests/221.out
new file mode 100644
index 0000000..a9c0190
--- /dev/null
+++ b/tests/qemu-iotests/221.out
@@ -0,0 +1,16 @@
+QA output created by 221
+
+=== Check mapping of unaligned raw image ===
+
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=43009
+[{ "start": 0, "length": 43520, "depth": 0, "zero": true, "data": false, "offset": OFFSET}]
+[{ "start": 0, "length": 43520, "depth": 0, "zero": true, "data": false, "offset": OFFSET}]
+wrote 1/1 bytes at offset 43008
+1 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+[{ "start": 0, "length": 40960, "depth": 0, "zero": true, "data": false, "offset": OFFSET},
+{ "start": 40960, "length": 2049, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
+{ "start": 43009, "length": 511, "depth": 0, "zero": true, "data": false, "offset": OFFSET}]
+[{ "start": 0, "length": 40960, "depth": 0, "zero": true, "data": false, "offset": OFFSET},
+{ "start": 40960, "length": 2049, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
+{ "start": 43009, "length": 511, "depth": 0, "zero": true, "data": false, "offset": OFFSET}]
+*** done