diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2022-05-06 18:06:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 18:06:07 (GMT) |
commit | 13985a7f529a3628fe215478f9d77f0d5b9b0fd1 (patch) | |
tree | d82bdd79c45f99b5237977e3371af5a689014c14 /tools/src/h5stat/h5stat.c | |
parent | cdf837d0a16acd657e53057d19b4b21763eeca45 (diff) | |
download | hdf5-13985a7f529a3628fe215478f9d77f0d5b9b0fd1.zip hdf5-13985a7f529a3628fe215478f9d77f0d5b9b0fd1.tar.gz hdf5-13985a7f529a3628fe215478f9d77f0d5b9b0fd1.tar.bz2 |
Fixes for S3 and HDFS VFDs with tools (#1740)
Diffstat (limited to 'tools/src/h5stat/h5stat.c')
-rw-r--r-- | tools/src/h5stat/h5stat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/src/h5stat/h5stat.c b/tools/src/h5stat/h5stat.c index e42af10..d5b9a1a 100644 --- a/tools/src/h5stat/h5stat.c +++ b/tools/src/h5stat/h5stat.c @@ -1711,6 +1711,15 @@ main(int argc, char *argv[]) vfd_info.info = NULL; vfd_info.u.name = drivername; +#ifdef H5_HAVE_ROS3_VFD + if (!HDstrcmp(drivername, drivernames[ROS3_VFD_IDX])) + vfd_info.info = &ros3_fa; +#endif +#ifdef H5_HAVE_LIBHDFS + if (!HDstrcmp(drivername, drivernames[HDFS_VFD_IDX])) + vfd_info.info = &hdfs_fa; +#endif + if ((fapl_id = h5tools_get_fapl(H5P_DEFAULT, NULL, &vfd_info)) < 0) { error_msg("Unable to create FAPL for file access\n"); goto done; |