summaryrefslogtreecommitdiffstats
path: root/src/H5Ddeprec.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-04-08 22:22:37 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-04-08 22:22:37 (GMT)
commit7d7842302b1dcf0da0067b30c49da59b8f766cb3 (patch)
tree5fd9f29e738290f07ec405d0890eb7a629067083 /src/H5Ddeprec.c
parentb56de62ae06434c5966fc07664c44d91b407c515 (diff)
downloadhdf5-7d7842302b1dcf0da0067b30c49da59b8f766cb3.zip
hdf5-7d7842302b1dcf0da0067b30c49da59b8f766cb3.tar.gz
hdf5-7d7842302b1dcf0da0067b30c49da59b8f766cb3.tar.bz2
[svn-r22258] links and attributes VOL routines
change native location token to be of type H5O_loc_t several bug fixes and issues resolved
Diffstat (limited to 'src/H5Ddeprec.c')
-rw-r--r--src/H5Ddeprec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5Ddeprec.c b/src/H5Ddeprec.c
index e41e059..a2de87f 100644
--- a/src/H5Ddeprec.c
+++ b/src/H5Ddeprec.c
@@ -44,7 +44,7 @@
#include "H5Dpkg.h" /* Datasets */
#include "H5Eprivate.h" /* Error handling */
#include "H5Iprivate.h" /* IDs */
-
+#include "H5VLprivate.h" /* VOL plugins */
/****************/
/* Local Macros */
@@ -142,6 +142,7 @@ H5Dcreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id,
hid_t dcpl_id)
{
H5P_genplist_t *plist; /* Property list pointer */
+ hid_t lcpl_id = H5P_LINK_CREATE_DEFAULT;
hid_t ret_value; /* Return value */
FUNC_ENTER_API(FAIL)
@@ -162,6 +163,8 @@ H5Dcreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id,
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't set property value for datatype id")
if(H5P_set(plist, H5D_CRT_SPACE_ID_NAME, &space_id) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't set property value for space id")
+ if(H5P_set(plist, H5D_CRT_LCPL_ID_NAME, &lcpl_id) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't set property value for lcpl id")
/* Create the dataset through the VOL */
if((ret_value = H5VL_dataset_create(loc_id, name, dcpl_id, H5P_DATASET_ACCESS_DEFAULT)) < 0)