diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-09-26 22:47:00 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-09-27 02:13:35 (GMT) |
commit | 4fb64c89fe52a309150ca2d5bb97eb4763e598e9 (patch) | |
tree | af158b041bcbb357aca65fc0d780d1ed727d3d04 /src/H5VLnative_object.c | |
parent | fbb0728f5423ba88de5a7bbe4f4d06825ed82aaa (diff) | |
download | hdf5-4fb64c89fe52a309150ca2d5bb97eb4763e598e9.zip hdf5-4fb64c89fe52a309150ca2d5bb97eb4763e598e9.tar.gz hdf5-4fb64c89fe52a309150ca2d5bb97eb4763e598e9.tar.bz2 |
Converted H5O MD cache cork calls to use the VOL.
Diffstat (limited to 'src/H5VLnative_object.c')
-rw-r--r-- | src/H5VLnative_object.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/H5VLnative_object.c b/src/H5VLnative_object.c index de2a8a5..49d4b2c 100644 --- a/src/H5VLnative_object.c +++ b/src/H5VLnative_object.c @@ -487,6 +487,40 @@ H5VL__native_object_optional(void *obj, hid_t H5_ATTR_UNUSED dxpl_id, break; } + /* H5Odisable_mdc_flushes */ + case H5VL_NATIVE_OBJECT_DISABLE_MDC_FLUSHES: + { + H5O_loc_t *oloc = loc.oloc; + + if (H5O_disable_mdc_flushes(oloc) < 0) + HGOTO_ERROR(H5E_OHDR, H5E_CANTCORK, FAIL, "unable to cork the metadata cache"); + + break; + } + + /* H5Oenable_mdc_flushes */ + case H5VL_NATIVE_OBJECT_ENABLE_MDC_FLUSHES: + { + H5O_loc_t *oloc = loc.oloc; + + if (H5O_enable_mdc_flushes(oloc) < 0) + HGOTO_ERROR(H5E_OHDR, H5E_CANTUNCORK, FAIL, "unable to uncork the metadata cache"); + + break; + } + + /* H5Oare_mdc_flushes_disabled */ + case H5VL_NATIVE_OBJECT_ARE_MDC_FLUSHES_DISABLED: + { + H5O_loc_t *oloc = loc.oloc; + hbool_t *are_disabled = (hbool_t *)HDva_arg(arguments, hbool_t *); + + if (H5O_are_mdc_flushes_disabled(oloc, are_disabled) < 0) + HGOTO_ERROR(H5E_OHDR, H5E_CANTGET, FAIL, "unable to determine metadata cache cork status"); + + break; + } + default: HGOTO_ERROR(H5E_VOL, H5E_CANTGET, FAIL, "can't perform this operation on object"); } /* end switch */ |