]> 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)
committerKevin Wolf <kwolf@redhat.com>
Mon, 20 May 2019 15:08:57 +0000 (17:08 +0200)
commit2fab30c80b33cdc6157c7efe6207e54b6835cf92
tree5fac864c59fef4a4a38d4e32d72d556d490ac74b
parent9c3db310ff0b7473272ae8dce5e04e2f8a825390
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>
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