We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e3d9e commit 24d4f47Copy full SHA for 24d4f47
ompi/mca/io/ompio/io_ompio_component.c
@@ -281,22 +281,11 @@ file_query(struct ompi_file_t *file,
281
rank = ompi_comm_rank ( file->f_comm);
282
if (!tmp) {
283
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) {
+ if (LUSTRE == mca_fs_base_get_fstype(file->f_filename)) {
297
is_lustre = 1; //true
298
}
299
+
300
file->f_comm->c_coll.coll_bcast (&is_lustre,
301
1,
302
MPI_INT,
0 commit comments