diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2013-08-21 20:59:49 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2013-08-21 20:59:49 (GMT) |
commit | 8c14af82c61f50146a6c5646c2320a08d09dc32d (patch) | |
tree | 7916e0f37752894768994143d6723a124db34561 /tools/h5repack/h5repack_copy.c | |
parent | 6bc36a0c46a9864ae580ca43f00d3f4ec3e28147 (diff) | |
download | hdf5-8c14af82c61f50146a6c5646c2320a08d09dc32d.zip hdf5-8c14af82c61f50146a6c5646c2320a08d09dc32d.tar.gz hdf5-8c14af82c61f50146a6c5646c2320a08d09dc32d.tar.bz2 |
[svn-r24050] HDFFV-8498: --minimum option was disabled by HDFFV-8214. Reverted code change and changed default to 0 from 1024. Changed limit test to use h5dump to compare repacked file instead of h5diff.
Tested local linux with CMake
Diffstat (limited to 'tools/h5repack/h5repack_copy.c')
-rw-r--r-- | tools/h5repack/h5repack_copy.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/h5repack/h5repack_copy.c b/tools/h5repack/h5repack_copy.c index f9dd334..02337fd 100644 --- a/tools/h5repack/h5repack_copy.c +++ b/tools/h5repack/h5repack_copy.c @@ -1017,6 +1017,16 @@ int do_copy_objects(hid_t fidin, /* get the storage size of the input dataset */ dsize_in=H5Dget_storage_size(dset_in); + /* check for small size datasets (less than 1k) except + * changing to COMPACT. For the reference, COMPACT is limited + * by size 64K by library. + */ + if (options->layout_g != H5D_COMPACT) + { + if ( size_dset < options->min_comp ) + apply_s=0; + } + /* apply the filter */ if (apply_s) { |