need to check for the parent dir as well, since the file might not exist yet.
Этот коммит содержится в:
родитель
722aab92e6
Коммит
b4a725c26a
@ -102,9 +102,14 @@ int mca_fs_base_get_fstype(char *fname )
|
||||
char *fstype=NULL;
|
||||
bool ret = opal_path_nfs ( fname, &fstype );
|
||||
|
||||
if ( false == ret ) {
|
||||
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;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user