summaryrefslogtreecommitdiffstats
path: root/src/H5Gname.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2008-08-07 21:32:36 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2008-08-07 21:32:36 (GMT)
commit2df9af6ae8fd7bf4658e702b3e5046382dc5a852 (patch)
tree8192f956e40224566862d7d4ff640e61bba6ae45 /src/H5Gname.c
parentc827f0450cf1324cb972b90d70b2d8d4faecdb9e (diff)
downloadhdf5-2df9af6ae8fd7bf4658e702b3e5046382dc5a852.zip
hdf5-2df9af6ae8fd7bf4658e702b3e5046382dc5a852.tar.gz
hdf5-2df9af6ae8fd7bf4658e702b3e5046382dc5a852.tar.bz2
[svn-r15450] Purpose: Fix various problems that were occurring when using mounted files.
Description: Moved mount table from top file structure to shared file structure. Moved parent out of mount table and back into top file structure. mounted files can now be accessed from any handle of the parent file. Changes to how files are closed. Stricter cycle checking on mounted files. Removed unused function H5F_has_mount(). Tested: kagiso, smirom, linew (h5committest)
Diffstat (limited to 'src/H5Gname.c')
-rw-r--r--src/H5Gname.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5Gname.c b/src/H5Gname.c
index 1efb91e..072673a 100644
--- a/src/H5Gname.c
+++ b/src/H5Gname.c
@@ -700,19 +700,19 @@ H5G_name_replace_cb(void *obj_ptr, hid_t obj_id, void *key)
HGOTO_DONE(SUCCEED) /* No need to look at object, it's path is already invalid */
/* Find the top file in object's mount hier. */
- if(oloc->file->mtab.parent) {
+ if(oloc->file->parent) {
/* Check if object is in child file (for mount & unmount operations) */
if(names->dst_file && oloc->file->shared == names->dst_file->shared)
obj_in_child = TRUE;
/* Find the "top" file in the chain of mounted files */
- top_obj_file = oloc->file->mtab.parent;
- while(top_obj_file->mtab.parent != NULL) {
+ top_obj_file = oloc->file->parent;
+ while(top_obj_file->parent != NULL) {
/* Check if object is in child mount hier. (for mount & unmount operations) */
if(names->dst_file && top_obj_file->shared == names->dst_file->shared)
obj_in_child = TRUE;
- top_obj_file = top_obj_file->mtab.parent;
+ top_obj_file = top_obj_file->parent;
} /* end while */
} /* end if */
else
@@ -997,8 +997,8 @@ H5G_name_replace(const H5O_link_t *lnk, H5G_names_op_t op, H5F_t *src_file,
H5G_names_t names; /* Structure to hold operation information for callback */
/* Find top file in src location's mount hierarchy */
- while(src_file->mtab.parent)
- src_file = src_file->mtab.parent;
+ while(src_file->parent)
+ src_file = src_file->parent;
/* Set up common information for callback */
names.src_file = src_file;