kernel support for open share modes

Tim Potter tpot at
Wed Feb 16 01:03:10 GMT 2005

On Tue, 2005-02-15 at 18:59 -0500, Michael B Allen wrote:
> William A.(Andy) Adamson said:
> > we are considering providing the kernel NFSv4 daemon with a file system
> > interface for OPEN that could be used instead of the POSIX struct
> > file_operations->open and which would include deny share bits.
> This just made me realize my suggestion about modifying Samba to coordiate
> access checks with the NFS lock daemon is by itself not sufficient to
> eliminate races with external applications. Your modification would also
> be necessary. Then the NFS lock daemon could effectively be Samba's lock
> manager as well and provide proper semantics within the kernel for access
> checks.

I am pretty sure that under Linux there is coordination within the
kernel between NFS locks and SMB oplocks so that there can be no data
corruption.  Take a look at the various locktest programs in the
(samba3) torture testsuite.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the samba-technical mailing list