Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 2009 12:53:16 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189693 - head/sys/fs/devfs
Message-ID:  <200903111253.n2BCrGsC096125@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Mar 11 12:53:16 2009
New Revision: 189693
URL: http://svn.freebsd.org/changeset/base/189693

Log:
  Enable advisory file locking for devfs vnodes.
  
  Reported by:	Timothy Redaelli <timothy redaelli eu>
  MFC after:	1 week

Modified:
  head/sys/fs/devfs/devfs_vnops.c

Modified: head/sys/fs/devfs/devfs_vnops.c
==============================================================================
--- head/sys/fs/devfs/devfs_vnops.c	Wed Mar 11 11:42:17 2009	(r189692)
+++ head/sys/fs/devfs/devfs_vnops.c	Wed Mar 11 12:53:16 2009	(r189693)
@@ -452,14 +452,6 @@ devfs_access(struct vop_access_args *ap)
 
 /* ARGSUSED */
 static int
-devfs_advlock(struct vop_advlock_args *ap)
-{
-
-	return (ap->a_flags & F_FLOCK ? EOPNOTSUPP : EINVAL);
-}
-
-/* ARGSUSED */
-static int
 devfs_close(struct vop_close_args *ap)
 {
 	struct vnode *vp = ap->a_vp, *oldvp;
@@ -1552,7 +1544,6 @@ static struct vop_vector devfs_specops =
 	.vop_default =		&default_vnodeops,
 
 	.vop_access =		devfs_access,
-	.vop_advlock =		devfs_advlock,
 	.vop_bmap =		VOP_PANIC,
 	.vop_close =		devfs_close,
 	.vop_create =		VOP_PANIC,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903111253.n2BCrGsC096125>