summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-03-29 18:28:40 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-03-29 18:28:40 (GMT)
commit3d32d25d8fe666bddff0717dd67952f2602d80ab (patch)
tree0cf58f71072815b00bd25444777bb1bf75a080cc /src/H5D.c
parent64b76cff83f1744fa658e14036999dc8d38c75c3 (diff)
downloadhdf5-3d32d25d8fe666bddff0717dd67952f2602d80ab.zip
hdf5-3d32d25d8fe666bddff0717dd67952f2602d80ab.tar.gz
hdf5-3d32d25d8fe666bddff0717dd67952f2602d80ab.tar.bz2
[svn-r22193] - add VOL callback for H5Dset_extent
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/H5D.c b/src/H5D.c
index e4f7dbb..6263804 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -808,21 +808,17 @@ done:
herr_t
H5Dset_extent(hid_t dset_id, const hsize_t size[])
{
- H5D_t *dset; /* Dataset for this operation */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_API(FAIL)
H5TRACE2("e", "i*h", dset_id, size);
- /* Check args */
- if(NULL == (dset = (H5D_t *)H5I_object_verify(dset_id, H5I_DATASET)))
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataset")
if(!size)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no size specified")
- /* Private function */
- if(H5D_set_extent(dset, size, H5AC_dxpl_id) < 0)
- HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to set extend dataset")
+ /* set the extent through the VOL */
+ if((ret_value = H5VL_dataset_set_extent(dset_id, size)) < 0)
+ HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to set extent of dataset")
done:
FUNC_LEAVE_API(ret_value)