From 980ab1dc976302c1661d4be564c8fd48a5500161 Mon Sep 17 00:00:00 2001 From: "Julian M. Kunkel" Date: Thu, 26 Nov 2020 15:56:34 +0000 Subject: [PATCH] Lustre stripping: Fix default value such that Lustre striping is only set if anything is changed. --- src/aiori-POSIX.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aiori-POSIX.c b/src/aiori-POSIX.c index e8933b7..8beaa09 100755 --- a/src/aiori-POSIX.c +++ b/src/aiori-POSIX.c @@ -81,6 +81,7 @@ option_help * POSIX_options(aiori_mod_opt_t ** init_backend_options, aiori_mod_o }else{ memset(o, 0, sizeof(posix_options_t)); o->direct_io = 0; + o->lustre_stripe_count = -1; o->lustre_start_ost = -1; o->beegfs_numTargets = -1; o->beegfs_chunkSize = -1; @@ -392,8 +393,7 @@ aiori_fd_t *POSIX_Create(char *testFileName, int flags, aiori_mod_opt_t * param) /* File needs to be opened O_EXCL because we cannot set * Lustre striping information on a pre-existing file.*/ - fd_oflag |= - O_CREAT | O_EXCL | O_RDWR | O_LOV_DELAY_CREATE; + fd_oflag |= O_CREAT | O_EXCL | O_RDWR | O_LOV_DELAY_CREATE; *fd = open64(testFileName, fd_oflag, mode); if (*fd < 0) { fprintf(stdout, "\nUnable to open '%s': %s\n",