From 92dfb67e5cbe9ee7ef54b77a6a7cab5e2270a6a9 Mon Sep 17 00:00:00 2001 From: Shane Snyder Date: Fri, 27 Apr 2018 12:44:20 -0500 Subject: [PATCH] allow fsync in POSIX, MPIIO, and HDFS --- src/ior.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ior.c b/src/ior.c index c025e95..3d8c3dc 100755 --- a/src/ior.c +++ b/src/ior.c @@ -2371,8 +2371,10 @@ static void ValidateTests(IOR_param_t * test) if ((strcasecmp(test->api, "POSIX") != 0) && test->singleXferAttempt) WARN_RESET("retry only available in POSIX", test, &defaults, singleXferAttempt); - if ((strcasecmp(test->api, "POSIX") != 0) && test->fsync) - WARN_RESET("fsync() only available in POSIX", + if (((strcasecmp(test->api, "POSIX") != 0) + && (strcasecmp(test->api, "MPIIO") != 0) + && (strcasecmp(test->api, "HDFS") != 0)) && test->fsync) + WARN_RESET("fsync() not supported in selected backend", test, &defaults, fsync); if ((strcasecmp(test->api, "MPIIO") != 0) && test->preallocate) WARN_RESET("preallocation only available in MPIIO",