diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2024-03-25 17:57:08 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2024-03-25 17:57:08 +0000 |
commit | cd3459888eb31184926e234e88f9d883d1b9baa8 (patch) | |
tree | e724229b474aae403e0edc1366c6a9f9be67b8cf /sys/nfs/nfs_vnops.c | |
parent | d71590eff814f93920fe75a0ac064873462860d8 (diff) |
Move the "no (hard) linking directories" and "no cross-mount links"
checks from all the filesystems that support hardlinks at all into
the VFS layer. Simplify, EPERM description in link(2).
ok miod@ mpi@
Diffstat (limited to 'sys/nfs/nfs_vnops.c')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index d61f0a46847..bda27cd745e 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.193 2023/04/26 10:00:37 beck Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.194 2024/03/25 17:57:07 guenther Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -1769,11 +1769,6 @@ nfs_link(void *v) info.nmi_v3 = NFS_ISV3(vp); - if (dvp->v_mount != vp->v_mount) { - pool_put(&namei_pool, cnp->cn_pnbuf); - vput(dvp); - return (EXDEV); - } error = vn_lock(vp, LK_EXCLUSIVE); if (error != 0) { VOP_ABORTOP(dvp, cnp); |