summaryrefslogtreecommitdiffstats
path: root/src/H5G.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-06-01 21:20:10 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-06-01 21:20:10 (GMT)
commit45bbf45250734eda45794d5fc5bcfde4454d734b (patch)
tree9925e40d4ccb5bfdc9904e29f9bb1297bf1330ea /src/H5G.c
parent3f84e6478518a288a3a22d4385b114527a2d5b6e (diff)
downloadhdf5-45bbf45250734eda45794d5fc5bcfde4454d734b.zip
hdf5-45bbf45250734eda45794d5fc5bcfde4454d734b.tar.gz
hdf5-45bbf45250734eda45794d5fc5bcfde4454d734b.tar.bz2
[svn-r10837] Purpose:
Bug fix/new feature Description: Setting "SEMI" or "STRONG" file close degrees causes problems when multiple file IDs exist for the same file on disk. Solution: Make the "SEMI" and "STRONG" settings only apply to the file ID that is being closed. Also, add an "H5F_OBJ_LOCAL" flag for the H5Fget_obj_count() & H5Fget_obj_ids() calls, so that applications can query about objects opened with a particular file ID instead of all the objects opened in the file on disk. Platforms tested: FreeBSD 4.11 (sleipnir) h5committest
Diffstat (limited to 'src/H5G.c')
-rw-r--r--src/H5G.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5G.c b/src/H5G.c
index fa4bbfb..0107f05 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -2386,6 +2386,11 @@ H5G_loc (hid_t loc_id)
HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, NULL, "invalid file ID");
if (NULL==(ret_value=H5G_entof(H5G_rootof(f))))
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "unable to get symbol table entry for root group");
+
+ /* Patch up root group's symbol table entry to reflect this file */
+ /* (but only for non-mounted files) */
+ if(!f->mtab.parent)
+ ret_value->file = f;
break;
case H5I_GENPROP_CLS: