diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-05-23 22:21:33 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-05-23 22:21:33 (GMT) |
commit | 710ed6d10a965346ff6e41cc075587c8cf91f08c (patch) | |
tree | 39dc5afd3c0a2d086c59bbfa8bb0d4db38b41d1f /tools/src/h5repack/h5repack_verify.c | |
parent | 9fc2b3ef8e7933da716e2d2f832e93d8fc8023c0 (diff) | |
parent | 416ad00182e2d0fccc09d60a6da95aef8ad94d0e (diff) | |
download | hdf5-710ed6d10a965346ff6e41cc075587c8cf91f08c.zip hdf5-710ed6d10a965346ff6e41cc075587c8cf91f08c.tar.gz hdf5-710ed6d10a965346ff6e41cc075587c8cf91f08c.tar.bz2 |
Merge pull request #531 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit '416ad00182e2d0fccc09d60a6da95aef8ad94d0e':
HDFFV-8611 add autotools test
Remove obsolete function
HDFFV-8611 change h5repack to save the root group creation order Added test and new arguments to control the the input file parsing.
Diffstat (limited to 'tools/src/h5repack/h5repack_verify.c')
-rw-r--r-- | tools/src/h5repack/h5repack_verify.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tools/src/h5repack/h5repack_verify.c b/tools/src/h5repack/h5repack_verify.c index 7e79aa7..4ff4875 100644 --- a/tools/src/h5repack/h5repack_verify.c +++ b/tools/src/h5repack/h5repack_verify.c @@ -55,11 +55,11 @@ h5repack_verify(const char *in_fname, const char *out_fname, pack_opt_t *options trav_table_t *travt = NULL; int ok = 1; hid_t fcpl_in = -1; /* file creation property for input file */ - hid_t fcpl_out = -1; /* file creation property for output file */ - H5F_fspace_strategy_t in_strategy, out_strategy; /* file space handling strategy for in/output file */ - hbool_t in_persist, out_persist; /* free-space persist status for in/output file */ - hsize_t in_threshold, out_threshold; /* free-space section threshold for in/output file */ - hsize_t in_pagesize, out_pagesize; /* file space page size for input/output file */ + hid_t fcpl_out = -1; /* file creation property for output file */ + H5F_fspace_strategy_t in_strategy, out_strategy; /* file space handling strategy for in/output file */ + hbool_t in_persist, out_persist; /* free-space persist status for in/output file */ + hsize_t in_threshold, out_threshold; /* free-space section threshold for in/output file */ + hsize_t in_pagesize, out_pagesize; /* file space page size for input/output file */ /* open the output file */ if((fidout = H5Fopen(out_fname, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0 ) @@ -122,6 +122,8 @@ h5repack_verify(const char *in_fname, const char *out_fname, pack_opt_t *options if(options->all_filter == 1 || options->all_layout == 1) { + /* Initialize indexing options */ + h5trav_set_index(sort_by, sort_order); /* init table */ trav_table_init(&travt); @@ -455,6 +457,9 @@ int h5repack_cmp_pl(const char *fname1, * get file table list of objects *------------------------------------------------------------------------- */ + /* Initialize indexing options */ + h5trav_set_index(sort_by, sort_order); + /* init table */ trav_table_init(&trav); if(h5trav_gettable(fid1, trav) < 0) HGOTO_ERROR(FAIL, H5E_tools_min_id_g, "h5trav_gettable failed"); @@ -643,7 +648,7 @@ int verify_filters(hid_t pid, hid_t tid, int nfilters, filter_info_t *filter) { case H5Z_FILTER_NONE: - break; + break; case H5Z_FILTER_SHUFFLE: /* 1 private client value is returned by DCPL */ |