]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests: Test unaligned raw images with O_DIRECT
authorMax Reitz <mreitz@redhat.com>
Wed, 15 May 2019 04:15:41 +0000 (06:15 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 17 Sep 2019 19:35:03 +0000 (14:35 -0500)
commitd8328a3ca5e01432af4c9a877533cf2827784680
tree8cc8a1136abece07bf281e8370406ad1b9911073
parent241d89b760fd92827cf22b6ed666cf358e0f53ce
iotests: Test unaligned raw images with O_DIRECT

We already have 221 for accesses through the page cache, but it is
better to create a new file for O_DIRECT instead of integrating those
test cases into 221.  This way, we can make use of
_supported_cache_modes (and _default_cache_mode) so the test is
automatically skipped on filesystems that do not support O_DIRECT.

As part of the split, add _supported_cache_modes to 221.  With that, it
no longer fails when run with -c none or -c directsync.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 2fab30c80b33cdc6157c7efe6207e54b6835cf92)
 Conflicts:
tests/qemu-iotests/group
*fix context deps on test groups not in 4.0

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/qemu-iotests/221
tests/qemu-iotests/253 [new file with mode: 0755]
tests/qemu-iotests/253.out [new file with mode: 0644]
tests/qemu-iotests/group