Date: Wed, 14 May 2003 20:19:30 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/rpc.lockd kern.c Message-ID: <200305150319.h4F3JU5V085794@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2003/05/14 20:19:30 PDT FreeBSD src repository Modified files: usr.sbin/rpc.lockd kern.c Log: 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 Revision Changes Path 1.12 +2 -2 src/usr.sbin/rpc.lockd/kern.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305150319.h4F3JU5V085794>