summaryrefslogtreecommitdiffstats
path: root/src/H5Distore.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-03-19 23:41:28 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-03-19 23:41:28 (GMT)
commit9697077305b892b69262b263b775eeeed7b8717d (patch)
treeceb67b839d8b809ba8523ef79124deed50b84ad7 /src/H5Distore.c
parent43eb81fb3c6997ded3a94593d543c413dfa2ce5a (diff)
downloadhdf5-9697077305b892b69262b263b775eeeed7b8717d.zip
hdf5-9697077305b892b69262b263b775eeeed7b8717d.tar.gz
hdf5-9697077305b892b69262b263b775eeeed7b8717d.tar.bz2
[svn-r6505] Purpose:
Update Description: Have the FPHDF5 module initialized on startup. Have only the captain process perform certain functions (like flushing during an F_close call or allocating the superblock). H5Fistore needed a few checks to see if it was working with an FPHDF5 driver. Done similarly to how MPI and MPIPOSIX drivers are checked.. Platforms tested: Linux, Modi4, Sol Misc. update:
Diffstat (limited to 'src/H5Distore.c')
-rw-r--r--src/H5Distore.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/H5Distore.c b/src/H5Distore.c
index 6ac8ee3..c90d71b 100644
--- a/src/H5Distore.c
+++ b/src/H5Distore.c
@@ -1802,12 +1802,13 @@ H5F_istore_read(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout,
chunk_addr!=HADDR_UNDEF)
/*
- * If MPIO or MPIPOSIX is used and file can be written to, we must bypass the
- * chunk-cache scheme because other MPI processes could be writing to
- * other elements in the same chunk.
- * Do a direct write-through of only the elements requested.
+ * If MPIO, MPIPOSIX, or FPHDF5 is used and file can be written
+ * to, we must bypass the chunk-cache scheme because other MPI
+ * processes could be writing to other elements in the same
+ * chunk. Do a direct write-through of only the elements
+ * requested.
*/
- || ((IS_H5FD_MPIO(f) ||IS_H5FD_MPIPOSIX(f)) && (H5F_ACC_RDWR & f->shared->flags))
+ || ((IS_H5FD_MPIO(f) ||IS_H5FD_MPIPOSIX(f) || IS_H5FD_FPHDF5(f)) && (H5F_ACC_RDWR & f->shared->flags))
) {
H5O_layout_t l; /* temporary layout */
@@ -1983,11 +1984,12 @@ H5F_istore_write(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout,
chunk_addr!=HADDR_UNDEF)
/*
- * If MPIO or MPIPOSIX is used, must bypass the chunk-cache scheme because other
- * MPI processes could be writing to other elements in the same chunk.
- * Do a direct write-through of only the elements requested.
+ * If MPIO, MPIPOSIX, or FPHDF5 is used, must bypass the
+ * chunk-cache scheme because other MPI processes could be
+ * writing to other elements in the same chunk. Do a direct
+ * write-through of only the elements requested.
*/
- || ((IS_H5FD_MPIO(f) ||IS_H5FD_MPIPOSIX(f)) && (H5F_ACC_RDWR & f->shared->flags))
+ || ((IS_H5FD_MPIO(f) ||IS_H5FD_MPIPOSIX(f) || IS_H5FD_FPHDF5(f)) && (H5F_ACC_RDWR & f->shared->flags))
) {
H5O_layout_t l; /* temporary layout */