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 <mohamad.chaarawi@intel.com>
master
Mohamad Chaarawi 2021-07-13 10:30:24 -05:00 committed by GitHub
parent 2727475158
commit 88e90d5bbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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) {