iotests/221: Discard image before qemu-img map
commitf0947dc694e57d6ecb0f5ac3d684bcce8952cdff
authorMax Reitz <mreitz@redhat.com>
Mon, 7 Dec 2020 15:22:45 +0000 (7 16:22 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Dec 2020 16:52:40 +0000 (11 17:52 +0100)
tree6c95c5f4a7cd012c82aad074c4db62533f541eaf
parenteb43ea16dcb7e6ab01db321b5edac3e593556e7d
iotests/221: Discard image before qemu-img map

See the new comment for why this should be done.

I do not have a reproducer on master, but when using FUSE block exports,
this test breaks depending on the underlying filesystem (for me, it
works on tmpfs, but fails on xfs, because the block allocated by
file-posix has 16 kB there instead of 4 kB).

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20201207152245.66987-1-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/221
tests/qemu-iotests/221.out