summaryrefslogtreecommitdiffstats
path: root/src/H5Pfcpl.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2017-06-09 19:01:07 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2017-08-02 22:00:13 (GMT)
commitd7bfd458c4eadcfb338e9856256ecd98aa47aa10 (patch)
tree4cf86f842deec9df37aad04e622e92a1a9c8d9ed /src/H5Pfcpl.c
parent8eaef34ef0140182dffca391fb0bc63cd2ef2bd1 (diff)
downloadhdf5-d7bfd458c4eadcfb338e9856256ecd98aa47aa10.zip
hdf5-d7bfd458c4eadcfb338e9856256ecd98aa47aa10.tar.gz
hdf5-d7bfd458c4eadcfb338e9856256ecd98aa47aa10.tar.bz2
Changes made based on RFC review comments
Test the changes in a branch via daily testing.
Diffstat (limited to 'src/H5Pfcpl.c')
-rw-r--r--src/H5Pfcpl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Pfcpl.c b/src/H5Pfcpl.c
index 5383aae..6b0d2c0 100644
--- a/src/H5Pfcpl.c
+++ b/src/H5Pfcpl.c
@@ -1472,6 +1472,9 @@ H5Pset_file_space_page_size(hid_t plist_id, hsize_t fsp_size)
if(fsp_size < H5F_FILE_SPACE_PAGE_SIZE_MIN)
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "cannot set file space page size to less than 512")
+ if(fsp_size > H5F_FILE_SPACE_PAGE_SIZE_MAX)
+ HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "cannot set file space page size to more than 1GB")
+
/* Set the value*/
if(H5P_set(plist, H5F_CRT_FILE_SPACE_PAGE_SIZE_NAME, &fsp_size) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't set file space page size")