[Samba] Need some explanation on Samba/NFS locks handle

Jeremy Allison jra at samba.org
Sun Mar 18 19:46:58 GMT 2007

On Sun, Mar 18, 2007 at 07:13:34PM +0100, Alain.Gorlier at altissemiconductor.com wrote:
> So basic question : is NFS application able to use deny modes ?


> If not, how samba could check deny mode opening a file already opened by 
> an NFS client ?

It can't, as there is no such thing in an NFS open. Essentially
an NFS open has to map to "DENY_NONE".

> Could byte range lock be a way to "share" deny modes between NFS and Samba 
> ? 
> DENY_WRITE would be F_RDLCK ?
> DENY_READ would be F_WRLCK ?

No, deny modes are deny modes, byte range locks are byte range
locks. You can't mix the two. Under Windows DENY_WRITE doesn't
create a byte range lock on the entire file.


More information about the samba mailing list