Skip to content

Commit 556014c

Browse files
committed
v5.0.x: add support for GPFS 5.2.3-0 and newer
Signed-off-by: Steffen Christgau <christgau@zib.de>
1 parent 8f3c171 commit 556014c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ompi/mca/fs/gpfs/fs_gpfs_file_set_info.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,12 @@ int mca_fs_gpfs_file_set_info(ompio_file_t *fh, struct ompi_info_t *info)
313313
gpfs_hint_SetReplication.gpfsSetReplication.maxMetadataReplicas = atoi(token);
314314
gpfs_hint_SetReplication.gpfsSetReplication.dataReplicas = atoi(token);
315315
gpfs_hint_SetReplication.gpfsSetReplication.maxDataReplicas = atoi(token);
316+
#ifdef GPFS_FCNTL_SET_REPLICATIONX /* GPFS >= 5.2.3-0, see #13313 */
317+
gpfs_hint_SetReplication.gpfsSetReplication.perfReplicas = 0;
318+
#else
316319
gpfs_hint_SetReplication.gpfsSetReplication.reserved = 0;
320+
#endif
321+
317322
free(info_str_dup);
318323

319324
rc = gpfs_fcntl(gpfs_file_handle, &gpfs_hint_SetReplication);

0 commit comments

Comments
 (0)