Merge pull request #282 from hpc/fix-lustre-stripe

Lustre stripping: Fix default value such that Lustre striping is only set if anything is changed.
master
Julian Kunkel 2020-11-26 16:00:14 +00:00 committed by GitHub
commit b658cfce4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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