cvs commit: src/sys/nfsclient nfs_lock.c

Kris Kennaway kris at obsecurity.org
Wed Mar 26 22:50:24 PST 2003


On Wed, Mar 26, 2003 at 11:21:34AM -0800, Robert Watson wrote:
> rwatson     2003/03/26 11:21:34 PST
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/nfsclient        nfs_lock.c 
>   Log:
>   Add O_NONBLOCK to the vn_open_cred() flags for NFS client locking when
>   opening the POSIX fifo; convert ENXIO error returns to EOPNOTSUPP.
>   
>   This improves handling of the case where the /var/run/lock fifo exists
>   but there is no listener: we immediately return EOPNOTSUPP rather
>   than blocking until a listener turns up.  This could occur during a
>   diskless boot before rpc.lockd is loaded, or if the lock file persists
>   across a reboot following the disabling of rpc.lockd.  This may have
>   suddenly started to occur due to fifo blocking fixes--previously it
>   looks like attempts to read on a fifo with no listener would time out
>   due to insufficient resources.

Thanks, this sounds like it may fix non-blocking calls to open() on a
NFS file, which would previously block.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20030326/e51ecb31/attachment-0001.bin


More information about the cvs-src mailing list