From 073da082928f2e06d5723e911a4c8bd444b5e40c Mon Sep 17 00:00:00 2001 From: "Julian M. Kunkel" Date: Thu, 3 Dec 2020 20:54:51 +0000 Subject: [PATCH] IOR: print overwrite check only if a write operation is requested. --- src/ior.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ior.c b/src/ior.c index b2ba1a4..0a61814 100755 --- a/src/ior.c +++ b/src/ior.c @@ -1292,7 +1292,7 @@ static void TestIoSys(IOR_test_t *test) uint64_t params_saved_wearout = params->stoneWallingWearOutIterations; /* Check if the file exists and warn users */ - if( params->hints.filePerProc || rank == 0){ + if((params->writeFile || params->checkWrite) && (params->hints.filePerProc || rank == 0)){ struct stat sb; GetTestFileName(testFileName, params); int ret = backend->stat(testFileName, & sb, params->backend_options);