iotests: Add test 221 to catch qemu-img map regression
commitc6a9d2f6f9bc0c163b3a3073126464a2446bad5f
authorEric Blake <eblake@redhat.com>
Mon, 11 Jun 2018 21:39:27 +0000 (11 16:39 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Jun 2018 12:49:44 +0000 (15 14:49 +0200)
tree2babf9bc80288df34290cb7c9897f2daf027b032
parente0b371ed5e2db079051139136fd0478728b6a58f
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>
tests/qemu-iotests/221 [new file with mode: 0755]
tests/qemu-iotests/221.out [new file with mode: 0644]
tests/qemu-iotests/group