diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-04-21 00:38:45 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:37:19 (GMT) |
commit | ce4be694e8d949c20220f98034cc1cdf95881d5a (patch) | |
tree | fb2b3610ff0c88aec86c974705c99d5b59d4ccc2 /tools/src/h5stat/h5stat.c | |
parent | d35daa45e90c46670ee160fa7437a573b24a90ad (diff) | |
download | hdf5-ce4be694e8d949c20220f98034cc1cdf95881d5a.zip hdf5-ce4be694e8d949c20220f98034cc1cdf95881d5a.tar.gz hdf5-ce4be694e8d949c20220f98034cc1cdf95881d5a.tar.bz2 |
Separated VFD and VOL parameters in tools.
Diffstat (limited to 'tools/src/h5stat/h5stat.c')
-rw-r--r-- | tools/src/h5stat/h5stat.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/src/h5stat/h5stat.c b/tools/src/h5stat/h5stat.c index bebe443..fb3d50d7 100644 --- a/tools/src/h5stat/h5stat.c +++ b/tools/src/h5stat/h5stat.c @@ -1813,16 +1813,14 @@ main(int argc, const char *argv[]) goto done; if (drivername) { - h5tools_fapl_info_t fapl_info; + h5tools_vfd_info_t vfd_info; - /* Currently, only retrieval of VFDs is supported. */ - fapl_info.type = VFD_BY_NAME; - fapl_info.info_string = NULL; - fapl_info.u.name = drivername; + vfd_info.info = NULL; + vfd_info.name = drivername; if (!HDstrcmp(drivername, drivernames[ROS3_VFD_IDX])) { #ifdef H5_HAVE_ROS3_VFD - fapl_info.info_string = (void *)&ros3_fa; + vfd_info.info = (void *)&ros3_fa; #else error_msg("Read-Only S3 VFD not enabled.\n"); goto done; @@ -1830,14 +1828,14 @@ main(int argc, const char *argv[]) } else if (!HDstrcmp(drivername, drivernames[HDFS_VFD_IDX])) { #ifdef H5_HAVE_LIBHDFS - fapl_info.info_string = (void *)&hdfs_fa; + vfd_info.info = (void *)&hdfs_fa; #else error_msg("HDFS VFD not enabled.\n"); goto done; #endif } - if ((fapl_id = h5tools_get_fapl(H5P_DEFAULT, &fapl_info)) < 0) { + if ((fapl_id = h5tools_get_fapl(H5P_DEFAULT, NULL, &vfd_info)) < 0) { error_msg("Unable to create FAPL for file access\n"); goto done; } |