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",