diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2011-04-07 21:56:38 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2011-04-07 21:56:38 (GMT) |
commit | 4b7f286a45b24de8cb5d08780df21fc7b79542ed (patch) | |
tree | 7d02277da5b03000fcc25ef6b6d4f2356e77e634 /src/H5Pdcpl.c | |
parent | baba8a3d59da7ab265900a4e94a7ee47d8856a4e (diff) | |
download | hdf5-4b7f286a45b24de8cb5d08780df21fc7b79542ed.zip hdf5-4b7f286a45b24de8cb5d08780df21fc7b79542ed.tar.gz hdf5-4b7f286a45b24de8cb5d08780df21fc7b79542ed.tar.bz2 |
[svn-r20440] Bug 1386 - allow dimension size to be zero even though it isn't unlimited. I added test cases for contiguous, compact, and chunked, and external storage datasets, and also attribute. The test includes dataspace selections. I'll handle the tools in the next step.
Tested on jam, amani, and heiwa.
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r-- | src/H5Pdcpl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c index d2aa8d5..6e20aed 100644 --- a/src/H5Pdcpl.c +++ b/src/H5Pdcpl.c @@ -966,6 +966,11 @@ done: * Changed the way to check parameter and set property for * generic property list. * + * Raymond Lu + * 7 April 2011 + * Starting from the 1.8.7 release, we allow dataspace to have + * zero dimension size. So the external storage size for + * dataset can be zero. *------------------------------------------------------------------------- */ herr_t @@ -985,8 +990,6 @@ H5Pset_external(hid_t plist_id, const char *name, off_t offset, hsize_t size) HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, FAIL, "no name given") if (offset<0) HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, FAIL, "negative external file offset") - if (size<=0) - HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, FAIL, "zero size") /* Get the plist structure */ if(NULL == (plist = H5P_object_verify(plist_id, H5P_DATASET_CREATE))) |