summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-08-11 20:34:24 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-08-11 20:34:24 (GMT)
commit68ecb148b22efa6b7f3edef91ba711a2a36980dc (patch)
tree0260194f5a6343ae506767ac9a3e8a39bcad66b3 /src/H5F.c
parenteccec94aec004d59dad2a4a10515b5c22298b07c (diff)
downloadhdf5-68ecb148b22efa6b7f3edef91ba711a2a36980dc.zip
hdf5-68ecb148b22efa6b7f3edef91ba711a2a36980dc.tar.gz
hdf5-68ecb148b22efa6b7f3edef91ba711a2a36980dc.tar.bz2
[svn-r17331] Description:
Bring back more changes from file free space branch. Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode Mac OS X/32 10.5.8 (amazon) in debug mode Mac OS X/32 10.5.8 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 72cff79..2b082ff 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -2520,6 +2520,7 @@ hssize_t
H5Fget_freespace(hid_t file_id)
{
H5F_t *file; /* File object for file ID */
+ hsize_t tot_space; /* Amount of free space in the file */
hssize_t ret_value; /* Return value */
FUNC_ENTER_API(H5Fget_freespace, FAIL)
@@ -2530,9 +2531,11 @@ H5Fget_freespace(hid_t file_id)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "not a file ID")
/* Go get the actual amount of free space in the file */
- if((ret_value = H5MF_get_freespace(file, H5AC_ind_dxpl_id)) < 0)
+ if(H5MF_get_freespace(file, H5AC_ind_dxpl_id, &tot_space, NULL) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "unable to check free space for file")
+ ret_value = (hssize_t)tot_space;
+
done:
FUNC_LEAVE_API(ret_value)
} /* end H5Fget_freespace() */