[Samba] Need some explanation on Samba/NFS locks handle
jra at samba.org
Fri Mar 16 16:54:49 GMT 2007
On Fri, Mar 16, 2007 at 04:15:23PM +0100, Alain.Gorlier at altissemiconductor.com wrote:
> >> What kind of lock would the NFS client issue?
> Linux locks : /* F_RDLCK, F_WRLCK, F_UNLCK */
These are byte range locks, not deny modes.
> Imagine an NFS application that has to lock a file to inform others that
> the file is already used and should not be written (F_WRLCK).
> In samba server, there is no check/no error reported to the SMB clients
> that the file is locked.
You're confusing byte range locks here with deny modes.
Please go and research the difference between the two.
> So a samba client can always access/write the file that is already used
> and locked by an NFS client.
As can any POSIX client. But if the client *checks* for locks
before hand then they will see the NFS locks.
More information about the samba