summaryrefslogtreecommitdiffstats
path: root/tools/src/h5dump
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-04-02 09:12:19 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-04-02 09:12:19 (GMT)
commit456308ff17f2c7462a644f9505643d9c1a7efcb8 (patch)
treeca3bf6c46edb5b9aed60da4bce079435a71b700a /tools/src/h5dump
parent3cd1b46b9cdcc28507cc13441134bb6d58e41086 (diff)
downloadhdf5-456308ff17f2c7462a644f9505643d9c1a7efcb8.zip
hdf5-456308ff17f2c7462a644f9505643d9c1a7efcb8.tar.gz
hdf5-456308ff17f2c7462a644f9505643d9c1a7efcb8.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.c16
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);