diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2012-03-14 13:52:19 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2012-03-14 13:52:19 (GMT) |
commit | 6d61d2b0d017ebff61407a1816c5fcf7c0c8c7b9 (patch) | |
tree | f2bc26cd55ae3d4d43239b02918c0427ad1d888c /src/H5D.c | |
parent | 90ec386c958859b73bc050eafa7d525df9dd618c (diff) | |
download | hdf5-6d61d2b0d017ebff61407a1816c5fcf7c0c8c7b9.zip hdf5-6d61d2b0d017ebff61407a1816c5fcf7c0c8c7b9.tar.gz hdf5-6d61d2b0d017ebff61407a1816c5fcf7c0c8c7b9.tar.bz2 |
[svn-r22064] -renmace a few VOL file routines
- add a dummy VOL driver to make sure we can change drivers at runtime
Diffstat (limited to 'src/H5D.c')
-rw-r--r-- | src/H5D.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -165,11 +165,19 @@ H5Dcreate2(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, if(TRUE != H5P_isa_class(dapl_id, H5P_DATASET_ACCESS)) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not dataset access property list") +#if 0 + /* Create the dataset through the VOL */ + if((ret_value = H5VL_dataset_create(loc_id, name, type_id, space_id, + lcpl_id, dcpl_id, dapl_id)) < 0) + HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to create dataset") +#endif + /* Create the new dataset & get its ID */ if(NULL == (dset = H5D__create_named(&loc, name, type_id, space, lcpl_id, dcpl_id, dapl_id, H5AC_dxpl_id))) HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to create dataset") if((ret_value = H5I_register(H5I_DATASET, dset, TRUE)) < 0) - HGOTO_ERROR(H5E_DATASET, H5E_CANTREGISTER, FAIL, "unable to register dataset") + HGOTO_ERROR(H5E_DATASET, H5E_CANTREGISTER, FAIL, "unable to register dataset")A + done: if(ret_value < 0) |