]> 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, 9 Jul 2019 20:44:17 +0000 (15:44 -0500)
commit261d7f653a34736dec07d5036ebb17527e45e63b
tree16d69c114245d6dde339b860567b202705dd88d4
parent044b0bcedf12030bf92faf1a2514fa398ebd1537
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)
*remove context dependencies on iotests not in 3.1
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