summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@koziol.gov>2019-12-17 19:11:39 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:21 (GMT)
commit091b45c02d942645bdf80394208debff474e94f2 (patch)
tree1a2128199cad1a62e5e6c75cac1dce6dbf436350 /tools
parentb71046be5ae0c00d351678f54179084df8048493 (diff)
downloadhdf5-091b45c02d942645bdf80394208debff474e94f2.zip
hdf5-091b45c02d942645bdf80394208debff474e94f2.tar.gz
hdf5-091b45c02d942645bdf80394208debff474e94f2.tar.bz2
Update h5debug to retrieve file pointer through VOL framework
Diffstat (limited to 'tools')
-rw-r--r--tools/src/misc/h5debug.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/src/misc/h5debug.c b/tools/src/misc/h5debug.c
index 45aba78..a167709 100644
--- a/tools/src/misc/h5debug.c
+++ b/tools/src/misc/h5debug.c
@@ -249,6 +249,7 @@ int
main(int argc, char *argv[])
{
hid_t fid, fapl;
+ H5VL_object_t *vol_obj;
H5F_t *f;
haddr_t addr = 0, extra = 0, extra2 = 0, extra3 = 0, extra4 = 0;
uint8_t sig[H5F_SIGNATURE_LEN];
@@ -297,7 +298,12 @@ main(int argc, char *argv[])
}
api_ctx_pushed = TRUE;
- if(NULL == (f = (H5F_t *)H5VL_object(fid))) {
+ if(NULL == (vol_obj = (H5VL_object_t *)H5VL_vol_object(fid))) {
+ HDfprintf(stderr, "cannot obtain vol_obj pointer\n");
+ HDexit(2);
+ } /* end if */
+
+ if(NULL == (f = (H5F_t *)H5VL_object_data(vol_obj))) {
HDfprintf(stderr, "cannot obtain H5F_t pointer\n");
HDexit(2);
} /* end if */