]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests: Add test 221 to catch qemu-img map regression
authorEric Blake <eblake@redhat.com>
Mon, 11 Jun 2018 21:39:27 +0000 (16:39 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 11 Jul 2018 16:48:20 +0000 (11:48 -0500)
commit396d79c36cf91de3ecf0741c6157688a1600399b
tree6cd08d72d605f4c8d423345f03667a11742573a2
parent26cdf35f69472694ecdba8dc3de914d090bbbc61
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>
(cherry picked from commit c6a9d2f6f9bc0c163b3a3073126464a2446bad5f)
 Conflicts:
tests/qemu-iotests/group
* drop context dep on tests not present in 2.12
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/qemu-iotests/221 [new file with mode: 0755]
tests/qemu-iotests/221.out [new file with mode: 0644]
tests/qemu-iotests/group