diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-04-02 09:12:19 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:57 (GMT) |
commit | 12ecc595d8fa337c0c069b809bfc49b67bb11a75 (patch) | |
tree | eeef166a3c7d6462eef1a05101b024a879c36fc9 /tools/src/h5dump | |
parent | 2001e80bb2618e5975b3221ef9d331a8ce0dd3d3 (diff) | |
download | hdf5-12ecc595d8fa337c0c069b809bfc49b67bb11a75.zip hdf5-12ecc595d8fa337c0c069b809bfc49b67bb11a75.tar.gz hdf5-12ecc595d8fa337c0c069b809bfc49b67bb11a75.tar.bz2 |
Added checks for native optional call support in some of the tools.
Diffstat (limited to 'tools/src/h5dump')
-rw-r--r-- | tools/src/h5dump/h5dump_ddl.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/src/h5dump/h5dump_ddl.c b/tools/src/h5dump/h5dump_ddl.c index 9414f5b..e97ab7e 100644 --- a/tools/src/h5dump/h5dump_ddl.c +++ b/tools/src/h5dump/h5dump_ddl.c @@ -1136,6 +1136,22 @@ dump_fcpl(hid_t fid) unsigned sym_ik; /* symbol table B-tree internal 'K' value */ unsigned istore_ik; /* indexed storage B-tree internal 'K' value */ + void *obj = NULL; + hid_t connector_id = H5I_INVALID_HID; + hbool_t supported = FALSE; + + /* Dumping the information here only makes sense for the native + * VOL connector. The only VOL call here is H5Fget_info(), so we'll + * use that as a proxy for "native-ness". If that isn't supported, we'll + * just return. + */ + obj = H5VLobject(fid); + connector_id = H5VLget_connector_id(fid); + H5VLintrospect_opt_query(obj, connector_id, H5VL_SUBCLS_FILE, H5VL_NATIVE_FILE_GET_INFO, &supported); + H5VLclose(connector_id); + if (!supported) + return; + fcpl=H5Fget_create_plist(fid); H5Fget_info2(fid, &finfo); H5Pget_userblock(fcpl,&userblock); |