From fc13ddb7b3ec6c968f8319897b93f4b3a7818383 Mon Sep 17 00:00:00 2001 From: Frank Baker Date: Mon, 9 Jul 2001 16:18:11 -0500 Subject: [svn-r4164] Purpose: Fixes bug #503 Description: H5Gunlink -- Changed "file space is reclaimed" ot "released". Added note re: freespace and packing. Heavy edit of Purpose and Description. Platforms tested: IE 5 --- doc/html/RM_H5G.html | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/doc/html/RM_H5G.html b/doc/html/RM_H5G.html index 9eec6d3..02bf6ef 100644 --- a/doc/html/RM_H5G.html +++ b/doc/html/RM_H5G.html @@ -347,19 +347,32 @@ create or access function. const char *name )
Purpose: -
Removes the specified name from the group graph and - decrements the link count for the object to which name points +
Removes the link to an object from a group.
Description: -
H5Gunlink removes an association between a name and an object. - Object headers keep track of how many hard links refer to the object; - when the hard link count reaches zero, the object can be removed +
H5Gunlink removes the object specified by + name from the group graph and decrements the + link count for the object to which name points. + This action eliminates any association between name + and the object to which name pointed. +

+ Object headers keep track of how many hard links refer to an object; + when the link count reaches zero, the object can be removed from the file. Objects which are open are not removed until all identifiers to the object are closed.

- If the link count reaches zero, all file-space associated with - the object will be reclaimed. If the object is open, the - reclamation of the file space is delayed until all handles to the - object are closed. + If the link count reaches zero, all file space associated with + the object will be released, i.e., identified in memory as freespace. + If the any object identifier is open for the object, the space + will not be released until after the object identifier is closed. +

+ + Note that space identified as freespace is available for re-use + only as long as the file remains open; once a file has been + closed, the HDF5 library loses track of freespace. + Identifying freespace does not imply that the file + will be packed or that, if the file is closed and later reopened, + that the space will be available for re-use. + Such functionality has not yet been implemented in the HDF5 library.

Warning:
Exercise care in unlinking groups as it is possible to render data in a file inaccessible with H5Gunlink. -- cgit v0.12