summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-11-16 16:38:28 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-11-16 16:38:28 (GMT)
commit22a72b911eda2f413691eed0ef2862025827a858 (patch)
tree9241588c45829e4431aa8979b6c5d39a7014e9ed /tools
parentb950cebd9ec030b0f13c6fc9f17ea381c3afa2a6 (diff)
downloadhdf5-22a72b911eda2f413691eed0ef2862025827a858.zip
hdf5-22a72b911eda2f413691eed0ef2862025827a858.tar.gz
hdf5-22a72b911eda2f413691eed0ef2862025827a858.tar.bz2
[svn-r9531] Purpose: Bug fix(#213)
Description: H5Pset_fapl_family sets family member size only for creating new file. The file doesn't keep this size information. When the file is re-opened, the size of first member file is used as the member size. Solution: Assume user knows the original member size and sets it through H5Pset_fapl_family. That will be the member size. User can pass in value 0 as member size if he doesn't know the original member size. Library will choose the size of current first member size as the member file size. Platforms tested: h5committest and fuss.
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5tools.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index fef34df..801f83c 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -180,6 +180,9 @@ h5tools_get_fapl(const char *driver, unsigned *drivernum, int argc, const char *
} else if (!strcmp(driver, drivernames[FAMILY_IDX])) {
/* FAMILY Driver */
if((fapl = H5Pcreate(H5P_FILE_ACCESS))>=0) {
+ /* Set member size to be 0 to indicate the current first member size
+ * is the member size.
+ */
H5Pset_fapl_family(fapl, (hsize_t)0, H5P_DEFAULT);
if(drivernum)