diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-10-18 16:42:12 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-10-18 16:42:12 (GMT) |
commit | d8fdc955cc9cf13c6778a55c3502f2a7089ae472 (patch) | |
tree | cdf33b5051a2ff7a36da502af88fc9631e0d7c1e /tools/h5repack/h5repack_copy.c | |
parent | 1de960855f489baa174b77cff15c46a84a55d201 (diff) | |
download | hdf5-d8fdc955cc9cf13c6778a55c3502f2a7089ae472.zip hdf5-d8fdc955cc9cf13c6778a55c3502f2a7089ae472.tar.gz hdf5-d8fdc955cc9cf13c6778a55c3502f2a7089ae472.tar.bz2 |
[svn-r9428] Purpose:
bug fix
Description:
when specifying both an input object e.g -f mydset:GZIP=1 and a defined chunk -l CHUNK=20x20
the filter used a defined default chunk instead
Solution:
add a check for the input chunk
Platforms tested:
linux (small change)
Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack_copy.c')
-rw-r--r-- | tools/h5repack/h5repack_copy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/h5repack/h5repack_copy.c b/tools/h5repack/h5repack_copy.c index a5b6a3f..aeeded0 100644 --- a/tools/h5repack/h5repack_copy.c +++ b/tools/h5repack/h5repack_copy.c @@ -259,6 +259,7 @@ int do_copy_objects(hid_t fidin, #endif /* LATER */ int i, j; int wrote=0; + int has_layout; /*------------------------------------------------------------------------- * copy the suppplied object list @@ -269,6 +270,7 @@ int do_copy_objects(hid_t fidin, { buf=NULL; + has_layout=0; switch ( travt->objs[i].type ) { /*------------------------------------------------------------------------- @@ -387,13 +389,14 @@ int do_copy_objects(hid_t fidin, obj.chunk.rank=rank; if (apply_layout(dcpl_id,&obj)<0) goto error; + has_layout=1; } /*------------------------------------------------------------------------- * apply the filter; check if the object is to be filtered. *------------------------------------------------------------------------- */ - if (apply_filters(travt->objs[i].name,rank,dims,dcpl_id,mtype_id,options,&obj)<0) + if (apply_filters(travt->objs[i].name,rank,dims,dcpl_id,mtype_id,options,has_layout,&obj)<0) goto error; }/*nelmts*/ |