From 4af1d57b25130479d52f78618815e22d50cff4d8 Mon Sep 17 00:00:00 2001 From: kib Date: Wed, 30 Jul 2014 03:56:17 +0000 Subject: MFC r268764: Check for the cross-device cross-link attempt in the VFS, instead of VOP_LINK() implemenations. --- sys/ufs/ufs/ufs_vnops.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/ufs') 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); -- cgit v1.1