summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.c
diff options
context:
space:
mode:
authorBrian Sawicki <bsawicki@hdfgroup.org>2021-11-22 22:30:56 (GMT)
committerBrian Sawicki <bsawicki@hdfgroup.org>2021-11-22 22:30:56 (GMT)
commit4c510ce72185a97aac45393dcfc0f1966bf53ac7 (patch)
treed24168e2c95865d2958ca4fa669c7b6b78da4087 /tools/lib/h5tools.c
parentbf35648cd690d2c3b30850a2e5d2f2cb5dfe71ff (diff)
downloadhdf5-4c510ce72185a97aac45393dcfc0f1966bf53ac7.zip
hdf5-4c510ce72185a97aac45393dcfc0f1966bf53ac7.tar.gz
hdf5-4c510ce72185a97aac45393dcfc0f1966bf53ac7.tar.bz2
checkpoint, minor fixes to make h5dump work, cleanup
Diffstat (limited to 'tools/lib/h5tools.c')
-rw-r--r--tools/lib/h5tools.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index 2a3fc74..ae1f91d 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -569,6 +569,12 @@ h5tools_set_fapl_vfd(hid_t fapl_id, h5tools_vfd_info_t *vfd_info)
H5TOOLS_GOTO_ERROR(FAIL, "The HDFS VFD is not enabled");
#endif
}
+ else if (!HDstrcmp(vfd_info->name, drivernames[ONION_VFD_IDX])) {
+ if (!vfd_info->info)
+ H5TOOLS_GOTO_ERROR(FAIL, "Onion VFD info is invalid");
+ if (H5Pset_fapl_onion(fapl_id, (H5FD_onion_fapl_info_t *)vfd_info->info) < 0)
+ H5TOOLS_GOTO_ERROR(FAIL, "H5Pset_fapl_onion() failed");
+ }
else
H5TOOLS_GOTO_ERROR(FAIL, "invalid VFD name");