diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2005-06-08 20:50:58 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2005-06-08 20:50:58 (GMT) |
commit | 24ccb5da13fd45c346aee164314c27b865425f92 (patch) | |
tree | d5ceb89b62939c035a5c97701f8b81c5f2e68109 /tools/misc/h5repart.c | |
parent | 40b72a28acb974ca25876b05ec8d53fae10e7012 (diff) | |
download | hdf5-24ccb5da13fd45c346aee164314c27b865425f92.zip hdf5-24ccb5da13fd45c346aee164314c27b865425f92.tar.gz hdf5-24ccb5da13fd45c346aee164314c27b865425f92.tar.bz2 |
[svn-r10881] Purpose: Bug fix
Description: After recent fix of family driver bug(#213), some failure
was discovered on sol and kelgia in daily test. Family files can't be
opened by hdf5/tools/misc/repart_test.c. It turned out to be the
destination size of "off_t" type wasn't passed in through H5Pset()
correctly.
Solution: In tools/misc/h5repart.c, copy the destination size to a
variable of "hsize_t" type and pass in to H5Pset().
Platforms tested: sol and kelgia where the failure was discovered.
Diffstat (limited to 'tools/misc/h5repart.c')
-rw-r--r-- | tools/misc/h5repart.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/misc/h5repart.c b/tools/misc/h5repart.c index 6803aae..b3a463b 100644 --- a/tools/misc/h5repart.c +++ b/tools/misc/h5repart.c @@ -229,7 +229,8 @@ main (int argc, char *argv[]) #endif hid_t fapl; /*file access property list */ hid_t file; - + hsize_t hdsize; /*destination logical memb size */ + /* * Get the program name from argv[0]. Use only the last component. */ @@ -460,8 +461,10 @@ main (int argc, char *argv[]) perror ("H5Pset_fapl_family"); exit (1); } - - if(H5Pset(fapl, H5F_ACS_FAMILY_NEWSIZE_NAME, &dst_size) < 0) { + + /* Set the property as hsize_t */ + hdsize = dst_size; + if(H5Pset(fapl, H5F_ACS_FAMILY_NEWSIZE_NAME, &hdsize) < 0) { perror ("H5Pset_family_newsize"); exit (1); } |