summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-08-11 20:43:22 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-08-11 20:43:22 (GMT)
commit5f9e36528cb74a91fc7787d52bcc9fa8316b98df (patch)
treeb07ed9e6f01d99e4b2ba4333eb070f5a4957ab36 /src/H5F.c
parent37cea8f1b6f9fcdbb97d8ecfca09ff6aefbf55df (diff)
downloadhdf5-5f9e36528cb74a91fc7787d52bcc9fa8316b98df.zip
hdf5-5f9e36528cb74a91fc7787d52bcc9fa8316b98df.tar.gz
hdf5-5f9e36528cb74a91fc7787d52bcc9fa8316b98df.tar.bz2
[svn-r17332] Description:
Bring r17331 from trunk to 1.8 branch: Bring back more changes from file free space branch. Tested on: FreeBSD/32 6.3 (duty) in debug mode (h5committest performed on trunk)
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 9ed20c2..9453f6d 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() */