summaryrefslogtreecommitdiffstats
path: root/sys/fs/nandfs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-07-16 14:04:46 +0000
committerkib <kib@FreeBSD.org>2014-07-16 14:04:46 +0000
commit32a7383c85234a8aacc33c0415ab10beec2e0da3 (patch)
treed402822e2dc2ab92fb22d185c4e7be6a3d01ed96 /sys/fs/nandfs
parent508ee54556732e7fb194230700780b603987b02a (diff)
downloadFreeBSD-src-32a7383c85234a8aacc33c0415ab10beec2e0da3.zip
FreeBSD-src-32a7383c85234a8aacc33c0415ab10beec2e0da3.tar.gz
Check for the cross-device cross-link attempt in the VFS, instead of
forcing filesystem VOP_LINK() methods to repeat the code. In tmpfs_link(), remove redundand check for the type of the source, already done by VFS. Note that NFS server already performs this check before calling VOP_LINK(). Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
Diffstat (limited to 'sys/fs/nandfs')
-rw-r--r--sys/fs/nandfs/nandfs_vnops.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/fs/nandfs/nandfs_vnops.c b/sys/fs/nandfs/nandfs_vnops.c
index 056ca90..0f26b19 100644
--- a/sys/fs/nandfs/nandfs_vnops.c
+++ b/sys/fs/nandfs/nandfs_vnops.c
@@ -1355,9 +1355,6 @@ nandfs_link(struct vop_link_args *ap)
struct nandfs_inode *inode = &node->nn_inode;
int error;
- if (tdvp->v_mount != vp->v_mount)
- return (EXDEV);
-
if (inode->i_links_count >= LINK_MAX)
return (EMLINK);
OpenPOWER on IntegriCloud