Skip to content

Commit 24d4f47

Browse files
committed
ompio: use mca_fs_base_get_fstype to make it works even on Solaris
Thanks Siegmar Gross for reporting this issue
1 parent c4e3d9e commit 24d4f47

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

ompi/mca/io/ompio/io_ompio_component.c

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -281,22 +281,11 @@ file_query(struct ompi_file_t *file,
281281
rank = ompi_comm_rank ( file->f_comm);
282282
if (!tmp) {
283283
if ( 0 == rank) {
284-
do {
285-
err = statfs (file->f_filename, &fsbuf);
286-
} while (err && (errno == ESTALE));
287-
288-
if (err && (errno == ENOENT)) {
289-
mca_fs_base_get_parent_dir (file->f_filename, &dir);
290-
err = statfs (dir, &fsbuf);
291-
free (dir);
292-
}
293-
#ifndef LL_SUPER_MAGIC
294-
#define LL_SUPER_MAGIC 0x0BD00BD0
295-
#endif
296-
if (fsbuf.f_type == LL_SUPER_MAGIC) {
284+
if (LUSTRE == mca_fs_base_get_fstype(file->f_filename)) {
297285
is_lustre = 1; //true
298286
}
299287
}
288+
300289
file->f_comm->c_coll.coll_bcast (&is_lustre,
301290
1,
302291
MPI_INT,

0 commit comments

Comments
 (0)