Enable advisory file locking for devfs vnodes.

Reported by:	Timothy Redaelli <timothy redaelli eu>
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2009-03-11 12:53:16 +00:00
parent 5d5b73ad97
commit 52dc9305aa

View File

@ -450,14 +450,6 @@ devfs_access(struct vop_access_args *ap)
return (error);
}
/* 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)
@ -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,