diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-10-19 17:07:26 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-10-19 17:07:26 (GMT) |
commit | a1edc7069162a619957c7407d04b91e081044219 (patch) | |
tree | ca5e64791fcad2730a6ae92d7ba667bf9306cc41 /tools/h5repack/h5repack_main.c | |
parent | 78a3d673e6cb491d8087b74d0e2cbdd8ca89bb47 (diff) | |
download | hdf5-a1edc7069162a619957c7407d04b91e081044219.zip hdf5-a1edc7069162a619957c7407d04b91e081044219.tar.gz hdf5-a1edc7069162a619957c7407d04b91e081044219.tar.bz2 |
[svn-r12784]
Fixes for bugs 676, 228
676: both h5repack and h5diff use H5Dread. In the case of a "big"
dataset, use read/write by hyperslabs the same way h5dump uses. An
arbitrary value of 1GB was defined for "big", i.e, if the dataset is
greater than 1GB, then read/write by hyperslabs
228: use the file type in read/write by default. A new switch -n was
introduced if the user wants to use a native type, which was the
previous use by default.
Added a new test for h5repack that repacks a 1GB dataset
Tested: heping (serial, parallel), sol, copper
Diffstat (limited to 'tools/h5repack/h5repack_main.c')
-rw-r--r-- | tools/h5repack/h5repack_main.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/h5repack/h5repack_main.c b/tools/h5repack/h5repack_main.c index 074f937..5e26242 100644 --- a/tools/h5repack/h5repack_main.c +++ b/tools/h5repack/h5repack_main.c @@ -35,8 +35,10 @@ static void usage(void); * * Comments: * - * Modifications: July 2004 - * Introduced the extra EC or NN option for SZIP + * Modifications: + * July 2004: Introduced the extra EC or NN option for SZIP + * October 2006: Added a new switch -n, that allows to write the dataset + * using a native type. The default to write is the file type. * *------------------------------------------------------------------------- */ @@ -104,6 +106,9 @@ int main(int argc, char **argv) else if (strcmp(argv[i], "-e") == 0) { read_info(argv[++i],&options); } + else if (strcmp(argv[i], "-n") == 0) { + options.use_native = 1; + } else if (argv[i][0] == '-') { error_msg(progname, " - is not a valid argument\n"); @@ -194,6 +199,7 @@ void usage(void) printf(" <dim_1 x dim_2 x ... dim_n>\n"); printf("\n"); printf("-e file File with the -f and -l options (only filter and layout flags)\n"); + printf("-n Use a native type when repacking. Default is the file type\n"); printf("-m size Do not apply the filter to objects which size in bytes\n"); printf(" is smaller than number. If no size is specified a minimum of\n"); printf(" 1024 bytes is assumed.\n"); |