summaryrefslogtreecommitdiffstats
path: root/src/H5Fsuper_cache.c
diff options
context:
space:
mode:
authorMike McGreevy <mamcgree@hdfgroup.org>2011-09-22 21:48:04 (GMT)
committerMike McGreevy <mamcgree@hdfgroup.org>2011-09-22 21:48:04 (GMT)
commit58b4cd319d391cc0aed704abffd2f2b89f0eb3a0 (patch)
tree906551ce24c8007e826d50f09e45ef1bde2b47cc /src/H5Fsuper_cache.c
parentd23834558c72b07113632bef7ee0585d064bb1e2 (diff)
downloadhdf5-58b4cd319d391cc0aed704abffd2f2b89f0eb3a0.zip
hdf5-58b4cd319d391cc0aed704abffd2f2b89f0eb3a0.tar.gz
hdf5-58b4cd319d391cc0aed704abffd2f2b89f0eb3a0.tar.bz2
[svn-r21411]
Description: - Remove H5FD_mpiposix_flush function. I initially added it so the mpiposix driver had a place to coordinate the EOF value amongst all processes, but that was before we decided to introduce the H5FD_coordinate set of callbacks as a more appropriate place to do this. I just forgot to remove this function. - Add H5Fquery function for avoid_truncate and tie it to an associated H5F_AVOID_TRUNCATE() macro. Tested: - h5committested
Diffstat (limited to 'src/H5Fsuper_cache.c')
-rw-r--r--src/H5Fsuper_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Fsuper_cache.c b/src/H5Fsuper_cache.c
index 2f1374e..4117119 100644
--- a/src/H5Fsuper_cache.c
+++ b/src/H5Fsuper_cache.c
@@ -472,7 +472,7 @@ H5F_sblock_load(H5F_t *f, hid_t dxpl_id, haddr_t UNUSED addr, void *_udata)
HGOTO_ERROR(H5E_FILE, H5E_TRUNCATED, NULL, "truncated file")
#ifdef H5_HAVE_PARALLEL
- if (f->shared->avoid_truncate)
+ if (H5F_AVOID_TRUNCATE(f))
sblock->eof_in_file = stored_eof - sblock->base_addr;
#endif /* H5_HAVE_PARALLEL */
@@ -803,7 +803,7 @@ H5F_sblock_flush(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t UNUSED addr,
H5F_addr_encode(f, &p, sblock->ext_addr);
/* Encode the end-of-file address */
- if(f->shared->avoid_truncate) {
+ if(H5F_AVOID_TRUNCATE(f)) {
/* If we're avoiding truncating the file, then the current
value of the 'EOF' address will reflect the file's size, so
we can use it here directly. Note, however, that if