Skip to content

Commit

Permalink
fix from trunk: don't re-use mountpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
bengras committed Jun 11, 2010
1 parent cd445fe commit 2ec255b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions servers/vfs/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@ PRIVATE int mount_fs(endpoint_t fs_e)
/* Get vnode of mountpoint */
if ((vp = eat_path(PATH_NOFLAGS)) == NULL) return(err_code);

if (vp->v_ref_count != 1) {
put_vnode(vp);
return(EBUSY);
}


/* Tell FS on which vnode it is mounted (glue into mount tree) */
if ((r = req_mountpoint(vp->v_fs_e, vp->v_inode_nr)) != OK) {
put_vnode(vp);
Expand Down

0 comments on commit 2ec255b

Please sign in to comment.