1
1

need to check for the parent dir as well, since the file might not exist yet.

Этот коммит содержится в:
Edgar Gabriel 2016-01-26 13:49:21 -06:00
родитель 722aab92e6
Коммит b4a725c26a

Просмотреть файл

@ -103,7 +103,12 @@ int mca_fs_base_get_fstype(char *fname )
bool ret = opal_path_nfs ( fname, &fstype );
if ( false == ret ) {
return ompio_type;
char *dir;
mca_fs_base_get_parent_dir (fname, &dir );
ret = opal_path_nfs (dir, &fstype);
if ( false == ret ) {
return ompio_type;
}
}
if ( 0 == strncasecmp(fstype, "lustre", sizeof("lustre")) ) {
ompio_type = LUSTRE;