Skip to content

Commit c645083

Browse files
committed
io/romio: fix filesystem type check on OpenBSD 5.7
check the existence of the f_type field in struct statfs Thanks Paul Hargrove for the report (back-ported from commit open-mpi/ompi@b159587)
1 parent d23dda8 commit c645083

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ompi/mca/io/romio/romio/adio/common/ad_fstype.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ static void ADIO_FileSysType_fncall(const char *filename, int *fstype, int *erro
356356
}
357357
# endif
358358

359+
# ifdef ROMIO_HAVE_STRUCT_STATFS_WITH_F_TYPE
360+
359361
# ifdef ROMIO_BGL
360362
/* BlueGene is a special case: all file systems are AD_BGL, except for
361363
* certain exceptions */
@@ -429,6 +431,8 @@ static void ADIO_FileSysType_fncall(const char *filename, int *fstype, int *erro
429431
}
430432
# endif
431433

434+
# endif /*ROMIO_HAVE_STRUCT_STATFS_WITH_F_TYPE */
435+
432436
# ifdef ROMIO_UFS
433437
/* if UFS support is enabled, default to that */
434438
*fstype = ADIO_UFS;

0 commit comments

Comments
 (0)