summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.c
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2012-09-26 18:10:01 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2012-09-26 18:10:01 (GMT)
commit06e9ab4420adb7a6ae04514adcb134d27114e410 (patch)
tree493a66696596e465c5d780b2cb9854c7efa31781 /tools/h5repack/h5repack.c
parent87271a753ddd14a32959f11a19fb1e44d745daf5 (diff)
downloadhdf5-06e9ab4420adb7a6ae04514adcb134d27114e410.zip
hdf5-06e9ab4420adb7a6ae04514adcb134d27114e410.tar.gz
hdf5-06e9ab4420adb7a6ae04514adcb134d27114e410.tar.bz2
[svn-r22814] Purpose:
HDFFV-8012 - h5repack changes max dims and cause failure if only "-f none" is used without changing layout for chunked dataset when a chunk dim is bigger than a dataset dim Description: "h5repack -f <obj>:NONE <file.h5> out.h5" command failed if source file contains chunked dataset and a chunk dim is bigger than a dataset dim. Another issue is that the command changed max dims if chunk dim is smaller than the dataset dim. These issue occurred when dataset size is smaller than 64k (compact size limit) Fixed them. Merged from HDF5 trunk r22805 Tested: jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Windows (32-LE cmake), cmake (jam)
Diffstat (limited to 'tools/h5repack/h5repack.c')
-rw-r--r--tools/h5repack/h5repack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c
index 6517ae1..621cc52 100644
--- a/tools/h5repack/h5repack.c
+++ b/tools/h5repack/h5repack.c
@@ -93,6 +93,7 @@ int h5repack_init(pack_opt_t *options,
HDmemset(options, 0, sizeof(pack_opt_t));
options->min_comp = 1024;
options->verbose = verbose;
+ options->layout_g = H5D_LAYOUT_ERROR;
for ( n = 0; n < H5_REPACK_MAX_NFILTERS; n++)
{