diff options
author | Mike McGreevy <mamcgree@hdfgroup.org> | 2011-09-22 21:48:04 (GMT) |
---|---|---|
committer | Mike McGreevy <mamcgree@hdfgroup.org> | 2011-09-22 21:48:04 (GMT) |
commit | 58b4cd319d391cc0aed704abffd2f2b89f0eb3a0 (patch) | |
tree | 906551ce24c8007e826d50f09e45ef1bde2b47cc /src/H5Fquery.c | |
parent | d23834558c72b07113632bef7ee0585d064bb1e2 (diff) | |
download | hdf5-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/H5Fquery.c')
-rw-r--r-- | src/H5Fquery.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/H5Fquery.c b/src/H5Fquery.c index 4c05066..947e46b 100644 --- a/src/H5Fquery.c +++ b/src/H5Fquery.c @@ -1073,3 +1073,31 @@ H5F_use_tmp_space(const H5F_t *f) FUNC_LEAVE_NOAPI(f->shared->use_tmp_space) } /* end H5F_use_tmp_space() */ + +/*------------------------------------------------------------------------- + * Function: H5F_avoid_truncate + * + * Purpose: Quick and dirty routine to determine if the library + * is avoiding truncating this file. + * (Mainly added to stop non-file routines from poking about in the + * H5F_t data structure) + * + * Return: TRUE/FALSE on success/abort on failure (shouldn't fail) + * + * Programmer: Mike McGreevy + * April 25, 2011 + * + *------------------------------------------------------------------------- + */ +hbool_t +H5F_avoid_truncate(const H5F_t *f) +{ + /* Use FUNC_ENTER_NOAPI_NOINIT_NOFUNC here to avoid performance issues */ + FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5F_avoid_truncate) + + HDassert(f); + HDassert(f->shared); + + FUNC_LEAVE_NOAPI(f->shared->avoid_truncate); +} /* end H5F_avoid_truncate() */ + |