freebsd-nq/usr.sbin/rpc.lockd
Robert Watson eda8b2821f When getting back an NLM DENIED response for a requested lock from the
server, map it to EAGAIN locally rather than EACCES.  The NLM spec
indicates the DENIED corresponds to lock contention, not a permission
failure.  This fixes O_EXLOCK/O_SHLOCK with O_NONBLOCK, which would
previously give a permission error, which in turn fixes things
like mailq(8) and lockf(1) over NFS.

Approved by:	scottl (re)
Reviewed by:	truckman, Andrew P Lentvorski, Jr. <bsder@allcaps.org>
Idea from:	truckman
2003-05-15 03:19:30 +00:00
..
kern.c When getting back an NLM DENIED response for a requested lock from the 2003-05-15 03:19:30 +00:00
lock_proc.c When receiving NLM_GRANTED_RES or NLM4_GRANTED_RES lock granted messages 2003-05-14 13:50:40 +00:00
lockd_lock.c Avoid registering for a lock on the server in the event the NFS client 2003-05-14 21:16:33 +00:00
lockd_lock.h Remove __P. 2002-03-21 22:52:45 +00:00
lockd.c init_nsm() is executed after a call to daemon(*, 0), so error and 2003-04-24 14:38:42 +00:00
lockd.h Bring in Andrew P. Lentvorski initial work on making lockd work, 2001-11-15 09:35:51 +00:00
Makefile style.Makefile(5) 2003-04-04 17:49:21 +00:00
rpc.lockd.8 The .Nm utility 2002-07-14 14:47:15 +00:00
test.c