summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-17 16:04:37 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-17 16:04:37 (GMT)
commitc3113b0e3ca9b7c19a4695b8d905f197051911a4 (patch)
tree80dbaa39978324fe21f6d8320811bd244c3ab1c8 /tools/h5repack/h5repack.c
parent3f043d5cca98bf90146fc81fd7e9d194a2407e9b (diff)
downloadhdf5-c3113b0e3ca9b7c19a4695b8d905f197051911a4.zip
hdf5-c3113b0e3ca9b7c19a4695b8d905f197051911a4.tar.gz
hdf5-c3113b0e3ca9b7c19a4695b8d905f197051911a4.tar.bz2
[svn-r15642]
Add a default user block size of 1024 when none is given add a failure condition of writing user block 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 )