Fix the the opal_path_nfs test for GPFS. Reported by Paul H. Hargrove
This commit was SVN r23669.
Этот коммит содержится в:
родитель
9911797867
Коммит
271cfa8c9a
@ -450,6 +450,10 @@ bool opal_path_nfs(char *fname)
|
|||||||
#elif defined(linux) || defined (__BSD) || (defined(__APPLE__) && defined(__MACH__))
|
#elif defined(linux) || defined (__BSD) || (defined(__APPLE__) && defined(__MACH__))
|
||||||
struct statfs buf;
|
struct statfs buf;
|
||||||
#endif
|
#endif
|
||||||
|
/*
|
||||||
|
* Be sure to update the test (test/util/opal_path_nfs.c)
|
||||||
|
* while adding a new Network/Cluster Filesystem here
|
||||||
|
*/
|
||||||
static struct fs_types_t {
|
static struct fs_types_t {
|
||||||
unsigned long long f_fsid;
|
unsigned long long f_fsid;
|
||||||
unsigned long long f_mask;
|
unsigned long long f_mask;
|
||||||
|
@ -154,7 +154,8 @@ void get_mounts (int * num_dirs, char ** dirs[], bool * nfs[])
|
|||||||
nfs_tmp[mount_known] = false;
|
nfs_tmp[mount_known] = false;
|
||||||
if (0 == strcasecmp (fs, "nfs") ||
|
if (0 == strcasecmp (fs, "nfs") ||
|
||||||
0 == strcasecmp (fs, "lustre") ||
|
0 == strcasecmp (fs, "lustre") ||
|
||||||
0 == strcasecmp (fs, "panfs"))
|
0 == strcasecmp (fs, "panfs") ||
|
||||||
|
0 == strcasecmp (fs, "gpfs"))
|
||||||
nfs_tmp[mount_known] = true;
|
nfs_tmp[mount_known] = true;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf ("get_mounts: dirs[%d]:%s fs:%s nfs:%s\n",
|
printf ("get_mounts: dirs[%d]:%s fs:%s nfs:%s\n",
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user