iotests: Let 245 pass on tmpfs
commit23e1d054112cec1e9d3a29eb27b89335f42d3479
authorMax Reitz <mreitz@redhat.com>
Wed, 10 Apr 2019 16:29:18 +0000 (10 18:29 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 12 Apr 2019 16:03:01 +0000 (12 18:03 +0200)
treebdd53d91fded9a2a41cf1f8b7eaeff54f25d7515
parent13c24edaa742181af8d9c6b027ee366b04de1ea1
iotests: Let 245 pass on tmpfs

tmpfs does not support O_DIRECT.  Detect this case, and skip flipping
@direct if the filesystem does not support it.

Fixes: bf3e50f6239090e63a8ffaaec971671e66d88e07
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/245