diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2018-10-27 07:21:48 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2018-10-27 07:21:48 (GMT) |
commit | 9c7b96b42fa8f2a0f02c7ba72173c09424d740c3 (patch) | |
tree | 7545157ac3fd8b8a88a0d543bef59f75455c71d1 /src/H5VLnative.c | |
parent | 43ffc1deb5f0a5e1defe38870eccb068e61d87c4 (diff) | |
download | hdf5-9c7b96b42fa8f2a0f02c7ba72173c09424d740c3.zip hdf5-9c7b96b42fa8f2a0f02c7ba72173c09424d740c3.tar.gz hdf5-9c7b96b42fa8f2a0f02c7ba72173c09424d740c3.tar.bz2 |
Move (final?) file operation from directly calling into library code to using
the file_optional VOL callback.
Diffstat (limited to 'src/H5VLnative.c')
-rw-r--r-- | src/H5VLnative.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/H5VLnative.c b/src/H5VLnative.c index 4d4311f..c6954bc 100644 --- a/src/H5VLnative.c +++ b/src/H5VLnative.c @@ -2088,7 +2088,13 @@ H5VL__native_file_optional(void *obj, hid_t H5_ATTR_UNUSED dxpl_id, void H5_ATTR case H5VL_FILE_GET_MDC_IMAGE_INFO: { - HGOTO_ERROR(H5E_VOL, H5E_UNSUPPORTED, FAIL, "invalid optional operation") + haddr_t *image_addr = va_arg(arguments, haddr_t *); + hsize_t *image_len = va_arg(arguments, hsize_t *); + + /* Go get the address and size of the cache image */ + if(H5AC_get_mdc_image_info(f->shared->cache, image_addr, image_len) < 0) + HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "can't retrieve cache image info") + break; } |