[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)
committerPeter Michael Green <plugwash@raspbian.org>
Mon, 15 Nov 2021 00:13:31 +0000 (00:13 +0000)
commit5fb2e88ab7d3021e5021caf140fb247dbd063acf
tree4b729138a87a267bde105bf801d84a10aad03049
parentc95db71c2df1a136e27137343cd7f610d2da4838
[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