]> 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>
Thu, 21 Jun 2018 01:45:07 +0000 (20:45 -0500)
commit99e051b2904f7c1dbf451725494f5d39fba4519d
tree1a9b88b3a8fc193be084ffdb5eb65ea4b7c2c43f
parent9c5a8433cee3f03ecd67de0046c41ed9b01d1993
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.11
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