add support for union and loopback mounts, from jsp

This commit is contained in:
cgd 1994-01-04 14:10:48 +00:00
parent 61cf5bd904
commit 2c5c3a2774
3 changed files with 10 additions and 4 deletions

View File

@ -1 +1 @@
revision 1.7 intentionally removed
revision 1.8 intentionally removed

View File

@ -1 +1 @@
revision 1.11 intentionally removed
revision 1.12 intentionally removed

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)nfs_vnops.c 7.60 (Berkeley) 5/24/91
* $Id: nfs_vnops.c,v 1.17 1993/12/22 13:03:22 cgd Exp $
* $Id: nfs_vnops.c,v 1.18 1994/01/04 14:11:04 cgd Exp $
*/
/*
@ -1029,7 +1029,13 @@ nfs_link(vp, ndp, p)
struct mbuf *mreq, *mrep, *md, *mb, *mb2;
if (vp->v_mount != ndp->ni_dvp->v_mount) {
free(ndp->ni_pnbuf, M_NAMEI);
VOP_ABORTOP(ndp);
if (ndp->ni_dvp == ndp->ni_vp)
vrele(ndp->ni_dvp);
else
vput(ndp->ni_dvp);
if (ndp->ni_vp)
vrele(ndp->ni_vp);
return (EXDEV);
}
if (ndp->ni_dvp != vp)