From 88e90d5bbf6389bcf0477ff62fd577967a2cbf77 Mon Sep 17 00:00:00 2001 From: Mohamad Chaarawi Date: Tue, 13 Jul 2021 10:30:24 -0500 Subject: [PATCH] mdtest: make sure fileperproc is set for mdtest read (#380) When running mdtest create + read, fileperproc is set properly so the driver known it's not a single shared file. But when mdtest is running with only read (-E) with a pre-existing dataset, fileperproc is never set, and driver thinks it's a single shared file and can do optimization to share the file handle. Signed-off-by: Mohamad Chaarawi --- src/mdtest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mdtest.c b/src/mdtest.c index 3c49a85..cf2e373 100644 --- a/src/mdtest.c +++ b/src/mdtest.c @@ -719,6 +719,8 @@ void mdtest_read(int random, int dirs, const long dir_iter, char *path) { /* below temp used to be hiername */ VERBOSE(3,5,"mdtest_read file: %s", item); + o.hints.filePerProc = ! o.shared_file; + /* open file for reading */ aiori_fh = o.backend->open (item, O_RDONLY, o.backend_options); if (NULL == aiori_fh) {