aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/221
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2019-05-15 06:15:41 +0200
committerKevin Wolf <kwolf@redhat.com>2019-05-20 17:08:57 +0200
commit2fab30c80b33cdc6157c7efe6207e54b6835cf92 (patch)
tree5fac864c59fef4a4a38d4e32d72d556d490ac74b /tests/qemu-iotests/221
parent9c3db310ff0b7473272ae8dce5e04e2f8a825390 (diff)
downloadqemu-2fab30c80b33cdc6157c7efe6207e54b6835cf92.zip
qemu-2fab30c80b33cdc6157c7efe6207e54b6835cf92.tar.gz
qemu-2fab30c80b33cdc6157c7efe6207e54b6835cf92.tar.bz2
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>
Diffstat (limited to 'tests/qemu-iotests/221')
-rwxr-xr-xtests/qemu-iotests/2214
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qemu-iotests/221 b/tests/qemu-iotests/221
index 25dd47b..0e9096f 100755
--- a/tests/qemu-iotests/221
+++ b/tests/qemu-iotests/221
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
#
# Test qemu-img vs. unaligned images
+# (See also 253, which is the O_DIRECT version)
#
# Copyright (C) 2018-2019 Red Hat, Inc.
#
@@ -37,6 +38,9 @@ _supported_fmt raw
_supported_proto file
_supported_os Linux
+_default_cache_mode writeback
+_supported_cache_modes writeback writethrough unsafe
+
echo
echo "=== Check mapping of unaligned raw image ==="
echo