Skip to content

Commit c4e3d9e

Browse files
edgargabrielggouaillardet
authored andcommitted
need to check for the parent dir as well, since the file might not exist yet.
(cherry picked from commit open-mpi/ompi@b4a725c)
1 parent f6c026e commit c4e3d9e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ompi/mca/fs/base/fs_base_get_parent_dir.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,12 @@ int mca_fs_base_get_fstype(char *fname )
103103
bool ret = opal_path_nfs ( fname, &fstype );
104104

105105
if ( false == ret ) {
106-
return ompio_type;
106+
char *dir;
107+
mca_fs_base_get_parent_dir (fname, &dir );
108+
ret = opal_path_nfs (dir, &fstype);
109+
if ( false == ret ) {
110+
return ompio_type;
111+
}
107112
}
108113
if ( 0 == strncasecmp(fstype, "lustre", sizeof("lustre")) ) {
109114
ompio_type = LUSTRE;

0 commit comments

Comments
 (0)