diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2017-01-31 23:32:00 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2017-01-31 23:32:00 (GMT) |
commit | ea8ab9f41f3d42e40979ec3bbd356dafd5e6fe8e (patch) | |
tree | ea3ea1b296c8b8cc5589dad1de2e08cfcda243ca /src/H5Pfapl.c | |
parent | 59b0c7a9505da5a90eddd510d0dcbab7cab2cdc8 (diff) | |
download | hdf5-ea8ab9f41f3d42e40979ec3bbd356dafd5e6fe8e.zip hdf5-ea8ab9f41f3d42e40979ec3bbd356dafd5e6fe8e.tar.gz hdf5-ea8ab9f41f3d42e40979ec3bbd356dafd5e6fe8e.tar.bz2 |
Implement new transaction model, transactions are now hidden from the
API, H5TR functions have no effect. Added support for H5Fflush. Added H5VLdaosm_snap_create and
H5Pset_daosm_snap_open to save and load snapshots. Added enforcement of
file access flags. Updated examples. Other minor fixes/cleanup.
Diffstat (limited to 'src/H5Pfapl.c')
-rw-r--r-- | src/H5Pfapl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c index e8bc054..4931ecd 100644 --- a/src/H5Pfapl.c +++ b/src/H5Pfapl.c @@ -53,6 +53,9 @@ /* Includes needed to set as default VOL driver */ #include "H5VLnative.h" /* Native H5 VOL plugin */ +/* Includes needed to handle DAOS-M driver */ +#include "H5VLdaosm.h" /* DAOS-M VOL plugin */ + #ifdef H5_HAVE_WINDOWS #include "H5FDwindows.h" /* Windows buffered I/O */ #endif @@ -344,6 +347,7 @@ H5P__facc_reg_prop(H5P_genclass_t *pclass) const H5VL_plugin_prop_t def_vol_prop = H5F_ACS_VOL_DEF; /* Default VOL plugin ID & info (initialized from a variable) */ hid_t trans_id = FAIL; + H5VL_daosm_snap_id_t snap_id = H5VL_DAOSM_SNAP_ID_INVAL; herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_STATIC @@ -495,6 +499,12 @@ H5P__facc_reg_prop(H5P_genclass_t *pclass) NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) < 0) HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class") + /* Register the DAOS-M snapshot open property*/ + /* Need to add encode/decode callbacks DSMINC */ + if(H5P_register_real(pclass, H5VL_DAOSM_SNAP_OPEN_ID, sizeof(H5VL_daosm_snap_id_t), &snap_id, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) < 0) + HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class") + #ifdef H5_HAVE_PARALLEL /* Register the metadata collective read flag */ if(H5P_register_real(pclass, H5_COLL_MD_READ_FLAG_NAME, H5F_ACS_COLL_MD_READ_FLAG_SIZE, &H5F_def_coll_md_read_flag_g, |