diff options
author | Quincey Koziol <koziol@koziol.gov> | 2019-12-17 19:11:39 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@koziol.gov> | 2020-01-04 15:59:24 (GMT) |
commit | b68c6977e6be5a1e9951cce83d3bf77729fc2b21 (patch) | |
tree | a4ec946e1f40613b25ea2d8109c61e4cfca16619 | |
parent | a08a3eaebac031a909748db05f747cec72989f5c (diff) | |
download | hdf5-b68c6977e6be5a1e9951cce83d3bf77729fc2b21.zip hdf5-b68c6977e6be5a1e9951cce83d3bf77729fc2b21.tar.gz hdf5-b68c6977e6be5a1e9951cce83d3bf77729fc2b21.tar.bz2 |
Update h5debug to retrieve file pointer through VOL framework
-rw-r--r-- | tools/src/misc/h5debug.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/src/misc/h5debug.c b/tools/src/misc/h5debug.c index b28457e..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 *)H5I_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 */ |