summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-16 19:42:51 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-16 19:42:51 (GMT)
commit54e35b67cf0055dc1a0240cfc7079fa1c4d6bfc2 (patch)
treecccfa113e3525212bc7d73dddbc30b8b6ed1f9c9 /tools/h5repack/h5repack.c
parent60534aa268e185344718f10077c38e1fc75ad8be (diff)
downloadhdf5-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
Diffstat (limited to 'tools/h5repack/h5repack.c')
-rw-r--r--tools/h5repack/h5repack.c9
1 files changed, 6 insertions, 3 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 )