diff options
author | U-hdf\nfortne2 <nfortne2@UMMON.ad.hdfgroup.org> | 2016-12-15 15:49:52 (GMT) |
---|---|---|
committer | U-hdf\nfortne2 <nfortne2@UMMON.ad.hdfgroup.org> | 2016-12-15 15:49:52 (GMT) |
commit | 9a4b73eea06b984119e42e533bb6bb554644f1bc (patch) | |
tree | 1c408c68973d446538bc9f180e2b079f2d7f9611 /src/H5VLdaosm.c | |
parent | 7697a7230428eaca5d101749d03c53ff5abc26fc (diff) | |
download | hdf5-9a4b73eea06b984119e42e533bb6bb554644f1bc.zip hdf5-9a4b73eea06b984119e42e533bb6bb554644f1bc.tar.gz hdf5-9a4b73eea06b984119e42e533bb6bb554644f1bc.tar.bz2 |
Add support for reading FCPL from file. Other minor fixes.
Diffstat (limited to 'src/H5VLdaosm.c')
-rw-r--r-- | src/H5VLdaosm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5VLdaosm.c b/src/H5VLdaosm.c index c99abb3..0c304b3 100644 --- a/src/H5VLdaosm.c +++ b/src/H5VLdaosm.c @@ -1067,6 +1067,12 @@ H5VL_daosm_file_open(const char *name, unsigned flags, hid_t fapl_id, if(NULL == (file->root_grp = (H5VL_daosm_group_t *)H5VL_daosm_group_open_helper(file, root_grp_oid, H5P_GROUP_ACCESS_DEFAULT, dxpl_id, req, epoch))) HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, NULL, "can't open root group") + /* FCPL was stored as root group's GCPL (as GCPL is the parent of FCPL). + * Point to it. */ + file->fcpl_id = file->root_grp->gcpl_id; + if(H5Iinc_ref(file->fcpl_id) < 0) + HGOTO_ERROR(H5E_ATOM, H5E_CANTINC, NULL, "can't increment FCPL ref count") + /* Determine if we want to acquire a transaction for the opened file */ if(H5P_get(plist, H5VL_ACQUIRE_TR_ID, &trans_id) < 0) HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't get property value for trans id") |