[PATCH libaio 22/28] harness: Add fallback code for filesystems not supporting O_DIRECT
authorGuillem Jover <guillem@hadrons.org>
Sat, 20 Jul 2019 19:21:01 +0000 (21:21 +0200)
committerGuillem Jover <guillem@debian.org>
Thu, 11 Nov 2021 03:56:01 +0000 (03:56 +0000)
commit20b7b615b596461b2eb94c71c986448428071ad1
tree3368399d051f95184275283caaf15bd9de97cffb
parentf0cefad3afc3084945f93607fdd59f260fdb9bdd
[PATCH libaio 22/28] harness: Add fallback code for filesystems not supporting O_DIRECT

When running the harness on a filesystem such as a tmpfs, which do not
support O_DIRECT, fallback to calls without the flag.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
[JEM: change from duplicating the open call to using F_SETFL]
[JEM: 18 and 21 require O_DIRECT-skip if not present]
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0022-harness-Add-fallback-code-for-filesystems-not-suppor.patch
harness/cases/17.t
harness/cases/18.t
harness/cases/19.t
harness/cases/21.t