diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-03-27 20:09:01 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-03-27 20:09:01 (GMT) |
commit | 26e1b18a578af61b491ff47a32779507df77a6ff (patch) | |
tree | 7ed5546454ffd360082b8ab2da1b7f85677cb3c0 /tools/h5repack/h5repack_list.c | |
parent | 983e043587f221bc2d0ebc17e403f8f61f438dfd (diff) | |
download | hdf5-26e1b18a578af61b491ff47a32779507df77a6ff.zip hdf5-26e1b18a578af61b491ff47a32779507df77a6ff.tar.gz hdf5-26e1b18a578af61b491ff47a32779507df77a6ff.tar.bz2 |
[svn-r12159] Purpose:
bug fix
Description:
h5repack was not dealing with family files
Solution:
use the toolslib function h5tools_open to open the file instead of H5Fopen in h5repack
Platforms tested:
linux
solaris
AIX
Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack_list.c')
-rw-r--r-- | tools/h5repack/h5repack_list.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/tools/h5repack/h5repack_list.c b/tools/h5repack/h5repack_list.c index ab7e5b2..b98af5c 100644 --- a/tools/h5repack/h5repack_list.c +++ b/tools/h5repack/h5repack_list.c @@ -35,7 +35,9 @@ *------------------------------------------------------------------------- */ int check_objects(const char* fname, - pack_opt_t *options) + pack_opt_t *options, + int argc, + const char *argv[]) { hid_t fid; int i; @@ -45,18 +47,10 @@ int check_objects(const char* fname, * open the file *------------------------------------------------------------------------- */ - - /* disable out reporting */ - H5E_BEGIN_TRY { - - /* Open the files */ - if ((fid=H5Fopen(fname,H5F_ACC_RDONLY,H5P_DEFAULT))<0 ){ - printf("h5repack: <%s>: %s\n", fname, H5FOPENERROR ); - exit(1); + if ((fid=h5tools_fopen(fname, NULL, NULL, 0, argc, argv))<0){ + printf("<%s>: %s\n", fname, H5FOPENERROR ); + return -1; } - /* enable out reporting */ - } H5E_END_TRY; - /*------------------------------------------------------------------------- * get the list of objects in the file |