diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-09-16 19:42:51 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-09-16 19:42:51 (GMT) |
commit | 54e35b67cf0055dc1a0240cfc7079fa1c4d6bfc2 (patch) | |
tree | cccfa113e3525212bc7d73dddbc30b8b6ed1f9c9 | |
parent | 60534aa268e185344718f10077c38e1fc75ad8be (diff) | |
download | hdf5-54e35b67cf0055dc1a0240cfc7079fa1c4d6bfc2.zip hdf5-54e35b67cf0055dc1a0240cfc7079fa1c4d6bfc2.tar.gz hdf5-54e35b67cf0055dc1a0240cfc7079fa1c4d6bfc2.tar.bz2 |
[svn-r15634] Add a default user block size of 1024 when none is given
Tested: windows, linux
-rw-r--r-- | tools/h5repack/h5repack.c | 9 | ||||
-rw-r--r-- | tools/h5repack/h5repack_refs.c | 7 |
2 files changed, 11 insertions, 5 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c index eabdb6c..8408778 100644 --- a/tools/h5repack/h5repack.c +++ b/tools/h5repack/h5repack.c @@ -416,9 +416,12 @@ static int check_options(pack_opt_t *options) */ if ( options->ublock_filename != NULL && options->ublock_size == 0 ) { - error_msg(progname, "user block size missing for file %s\n", - options->ublock_filename); - return -1; + if ( options->verbose ) + { + printf("Warning: user block size missing for file %s. Assigning a default size of 1024...\n", + options->ublock_filename); + options->ublock_size = 1024; + } } if ( options->ublock_filename == NULL && options->ublock_size != 0 ) diff --git a/tools/h5repack/h5repack_refs.c b/tools/h5repack/h5repack_refs.c index af29e87..82e8250 100644 --- a/tools/h5repack/h5repack_refs.c +++ b/tools/h5repack/h5repack_refs.c @@ -193,7 +193,8 @@ int do_copy_refobjs(hid_t fidin, goto error; if(options->verbose) { - + + printf(FORMAT_OBJ,"dset",travt->objs[i].name ); printf("object <%s> object reference created to <%s>\n", travt->objs[i].name, @@ -276,7 +277,9 @@ int do_copy_refobjs(hid_t fidin, goto error; if(options->verbose) { - + + + printf(FORMAT_OBJ,"dset",travt->objs[i].name ); printf("object <%s> region reference created to <%s>\n", travt->objs[i].name, |