summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-07-30 03:56:17 +0000
committerkib <kib@FreeBSD.org>2014-07-30 03:56:17 +0000
commit4af1d57b25130479d52f78618815e22d50cff4d8 (patch)
treeda99d07701f732cb9a7ea1f978fc1e8a5724dfe9 /sys/ufs
parent7c889ea487454b0962d2e64bd3110b9549a88afa (diff)
downloadFreeBSD-src-4af1d57b25130479d52f78618815e22d50cff4d8.zip
FreeBSD-src-4af1d57b25130479d52f78618815e22d50cff4d8.tar.gz
MFC r268764:
Check for the cross-device cross-link attempt in the VFS, instead of VOP_LINK() implemenations.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_vnops.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c
index 3504f0e..3379b13 100644
--- a/sys/ufs/ufs/ufs_vnops.c
+++ b/sys/ufs/ufs/ufs_vnops.c
@@ -968,10 +968,6 @@ ufs_link(ap)
if ((cnp->cn_flags & HASBUF) == 0)
panic("ufs_link: no name");
#endif
- if (tdvp->v_mount != vp->v_mount) {
- error = EXDEV;
- goto out;
- }
if (VTOI(tdvp)->i_effnlink < 2)
panic("ufs_link: Bad link count %d on parent",
VTOI(tdvp)->i_effnlink);
OpenPOWER on IntegriCloud