Re: F_RDLCK lock to FreeBSD NFS server fails to R/O target file [PATCH]

2011-12-05 Thread Rick Macklem
John wrote: After pondering the best way to allow the VOP_ACCESS() call to only query for the permissions really needed, I've come up with a patch that minimally adds one parameter to the nlm_get_vfs_state() function call with the lock type from the original argp.

Re: F_RDLCK lock to FreeBSD NFS server fails to R/O target file (nasty little bug)

2011-12-05 Thread Rick Macklem
John wrote: After pondering the best way to allow the VOP_ACCESS() call to only query for the permissions really needed, I've come up with a patch that minimally adds one parameter to the nlm_get_vfs_state() function call with the lock type from the original argp.

Re: F_RDLCK lock to FreeBSD NFS server fails to R/O target file [PATCH]

2011-08-26 Thread Rick Macklem
John wrote: After pondering the best way to allow the VOP_ACCESS() call to only query for the permissions really needed, I've come up with a patch that minimally adds one parameter to the nlm_get_vfs_state() function call with the lock type from the original argp.

Re: F_RDLCK lock to FreeBSD NFS server fails to R/O target file [PATCH]

2011-08-25 Thread John
After pondering the best way to allow the VOP_ACCESS() call to only query for the permissions really needed, I've come up with a patch that minimally adds one parameter to the nlm_get_vfs_state() function call with the lock type from the original argp.

F_RDLCK lock to FreeBSD NFS server fails to R/O target file

2011-08-24 Thread John
Hi Fellow NFS'ers, I believe I have found the problem we've been having with read locks while attaching to a FreeBSD NFS server. In sys/nlm/nlm_prot_impl.c, function nlm_get_vfs_state(), there is a call to VOP_ACCESS() as follows: /* * Check cred. */