summaryrefslogtreecommitdiffstats
path: root/src/H5HFspace.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-08-07 16:49:18 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-08-07 16:49:18 (GMT)
commit9a03ce6406817238a4c9b7fc77cc9fbeac8636e1 (patch)
tree97665ac7131af744c0e5dbc6ed4ead35ff6b2690 /src/H5HFspace.c
parenta44487281dcb259187efbd70817cc8ce9f36e72d (diff)
downloadhdf5-9a03ce6406817238a4c9b7fc77cc9fbeac8636e1.zip
hdf5-9a03ce6406817238a4c9b7fc77cc9fbeac8636e1.tar.gz
hdf5-9a03ce6406817238a4c9b7fc77cc9fbeac8636e1.tar.bz2
[svn-r12549] Description:
Add support for entire heap deletion. Platforms tested: FreeBSD 4.11 (sleipnir) Linux/32 2.4 (chicago) Linux/64 2.4 (mir) Mac OS X (amazon)
Diffstat (limited to 'src/H5HFspace.c')
-rw-r--r--src/H5HFspace.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/H5HFspace.c b/src/H5HFspace.c
index cc9f21b..0cc6c12 100644
--- a/src/H5HFspace.c
+++ b/src/H5HFspace.c
@@ -326,6 +326,41 @@ done:
/*-------------------------------------------------------------------------
+ * Function: H5HF_space_delete
+ *
+ * Purpose: Delete the free space manager for the heap
+ *
+ * Return: Success: non-negative
+ * Failure: negative
+ *
+ * Programmer: Quincey Koziol
+ * koziol@ncsa.uiuc.edu
+ * Aug 7 2006
+ *
+ *-------------------------------------------------------------------------
+ */
+herr_t
+H5HF_space_delete(H5HF_hdr_t *hdr, hid_t dxpl_id)
+{
+ herr_t ret_value = SUCCEED; /* Return value */
+
+ FUNC_ENTER_NOAPI_NOINIT(H5HF_space_delete)
+
+ /*
+ * Check arguments.
+ */
+ HDassert(hdr);
+
+ /* Delete the free space manager */
+ if(H5FS_delete(hdr->f, dxpl_id, hdr->fs_addr) < 0)
+ HGOTO_ERROR(H5E_HEAP, H5E_CANTFREE, FAIL, "can't delete to free space manager")
+
+done:
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* end H5HF_space_delete() */
+
+
+/*-------------------------------------------------------------------------
* Function: H5HF_space_change_sect_class
*
* Purpose: Change a section's class