summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-01-03 23:05:04 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-01-03 23:05:04 (GMT)
commit1831bc1d133e5c37bc5823df49f9fad7ac628f6b (patch)
tree89f33cdf6bee5e8b3b374eb87b6753852513edc7 /src/H5F.c
parent6237d44a08a2414f021ee93c1a2b529125618fb4 (diff)
downloadhdf5-1831bc1d133e5c37bc5823df49f9fad7ac628f6b.zip
hdf5-1831bc1d133e5c37bc5823df49f9fad7ac628f6b.tar.gz
hdf5-1831bc1d133e5c37bc5823df49f9fad7ac628f6b.tar.bz2
[svn-r14372] Description:
Further cleanups & simplifications to prepare for next phase of work. Tested on: FreeBSD/32 6.2 (duty) Mac OS X/32 10.5.1 (amazon)
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 48da779..cb9e3b8 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -900,6 +900,11 @@ H5F_new(H5F_file_t *shared, hid_t fcpl_id, hid_t fapl_id, H5FD_t *lf)
if(H5P_get(plist, H5F_ACS_LATEST_FORMAT_NAME, &(f->shared->latest_format)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't get 'latest format' flag")
+ /* Get the VFD values to cache */
+ f->shared->maxaddr = H5FD_get_maxaddr(lf);
+ if(!H5F_addr_defined(f->shared->maxaddr))
+ HGOTO_ERROR(H5E_FILE, H5E_BADVALUE, NULL, "bad maximum address from VFD")
+
/* Bump superblock version if we are to use the latest version of the format */
if(f->shared->latest_format)
super_vers = HDF5_SUPERBLOCK_VERSION_LATEST;