summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_copy.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-11-17 20:00:46 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-11-17 20:00:46 (GMT)
commit04e7a0ba36f017acde63ff48e98070233294719b (patch)
tree78a2ab5efdcfc1aff6cbdc4d0cf5a8f349e4fc99 /tools/h5repack/h5repack_copy.c
parente215d22a79d497518040d74c1d1bd3fce34780cb (diff)
downloadhdf5-04e7a0ba36f017acde63ff48e98070233294719b.zip
hdf5-04e7a0ba36f017acde63ff48e98070233294719b.tar.gz
hdf5-04e7a0ba36f017acde63ff48e98070233294719b.tar.bz2
[svn-r12936]
make h5repacktst clean a big file which name was changed to "h5repack_big_out.h5", do not use H5Ocopy only when the original DCPL has filters or a request is made for such, more code cleaning
Diffstat (limited to 'tools/h5repack/h5repack_copy.c')
-rw-r--r--tools/h5repack/h5repack_copy.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/h5repack/h5repack_copy.c b/tools/h5repack/h5repack_copy.c
index f6b738c..76129ad 100644
--- a/tools/h5repack/h5repack_copy.c
+++ b/tools/h5repack/h5repack_copy.c
@@ -399,18 +399,17 @@ int do_copy_objects(hid_t fidin,
/*-------------------------------------------------------------------------
* check if we should use H5Ocopy or not
- * if the DCPL has filters or a non default layout, we read/write the object
+ * if the DCPL has filters, we read/write the object
* otherwise we do a copy using H5Ocopy
*-------------------------------------------------------------------------
*/
-
- if (nfilters || layout!=H5D_CONTIGUOUS
- /* does the dcpl has filters or non default layout ? */
+ if (nfilters
+ /* does the dcpl has filters ? */
||
options->op_tbl->nelems
- /* do we have input request for filter/chunking */
+ /* do we have input request for filter/chunk ? */
||
- options->all_filter==1 || options->all_layout==1
+ options->all_filter==1 || options->all_layout==1
)
{
int j;