summaryrefslogtreecommitdiffstats
path: root/src/H5Fint.c
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2019-01-06 07:45:15 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2019-01-06 07:45:15 (GMT)
commitaa62951a5fbbffa88185a58aea2b7526f5e66ce6 (patch)
tree210e7ae75fdb65fbcdc7c4049e6d80e9060b3f5b /src/H5Fint.c
parente1b59919bb96f68f3b372a73790ecbe4ac3b395a (diff)
parent0e34f0feaaeb6d2286f87f695f25fae45c070a42 (diff)
downloadhdf5-aa62951a5fbbffa88185a58aea2b7526f5e66ce6.zip
hdf5-aa62951a5fbbffa88185a58aea2b7526f5e66ce6.tar.gz
hdf5-aa62951a5fbbffa88185a58aea2b7526f5e66ce6.tar.bz2
Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~bmribler/hdf5_bmr_fixbug into develop
Diffstat (limited to 'src/H5Fint.c')
-rw-r--r--src/H5Fint.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c
index 8de1769..cca46d0 100644
--- a/src/H5Fint.c
+++ b/src/H5Fint.c
@@ -3715,3 +3715,27 @@ done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F_get_file_id() */
+
+/*-------------------------------------------------------------------------
+ * Function: H5F_set_min_dset_ohdr
+ *
+ * Purpose: Set the crt_dset_ohdr_flag field with a new value.
+ *
+ * Return: SUCCEED/FAIL
+ *-------------------------------------------------------------------------
+ */
+herr_t
+H5F_set_min_dset_ohdr(H5F_t *f, hbool_t minimize)
+{
+ /* Use FUNC_ENTER_NOAPI_NOINIT_NOERR here to avoid performance issues */
+ FUNC_ENTER_NOAPI_NOINIT_NOERR
+
+ /* Sanity check */
+ HDassert(f);
+ HDassert(f->shared);
+
+ f->shared->crt_dset_min_ohdr_flag = minimize;
+
+ FUNC_LEAVE_NOAPI(SUCCEED)
+} /* H5F_set_min_dset_ohdr() */
+