diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-05-15 03:19:30 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-05-15 03:19:30 +0000 |
commit | ac48fcc177e0c1e9f20f76f4a6a9ec833537a1e3 (patch) | |
tree | aacf3f47e8175948e676ce6d04c02ab0630ce509 /sys/contrib | |
parent | e01c3427e31ddc022acd55593e818815c036618c (diff) | |
download | FreeBSD-src-ac48fcc177e0c1e9f20f76f4a6a9ec833537a1e3.zip FreeBSD-src-ac48fcc177e0c1e9f20f76f4a6a9ec833537a1e3.tar.gz |
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
Diffstat (limited to 'sys/contrib')
0 files changed, 0 insertions, 0 deletions