1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/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
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
lockd.c
lockd.h
Makefile
rpc.lockd.8
test.c