diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2013-08-23 04:55:15 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2013-08-23 04:55:15 (GMT) |
commit | d8a0a14591c902c21497f4fc7aab7ea9a35caee4 (patch) | |
tree | d77637306313312d02d7b7a88117b1d61a3baf00 /tools/h5repack/h5repack_copy.c | |
parent | 66921438dd3903b70ad3d4013c8726db3f6b69bd (diff) | |
download | hdf5-d8a0a14591c902c21497f4fc7aab7ea9a35caee4.zip hdf5-d8a0a14591c902c21497f4fc7aab7ea9a35caee4.tar.gz hdf5-d8a0a14591c902c21497f4fc7aab7ea9a35caee4.tar.bz2 |
[svn-r24062] Bring revisions #24030 - 24058 from trunk to revise_chunks.
h5committested.
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) { |