[Samba] strict locking and kernel oplocks in the smb.conf
Jeremy Allison
jra at samba.org
Fri Sep 30 12:30:34 MDT 2011
On Fri, Sep 30, 2011 at 11:28:43AM -0700, Philip Ong wrote:
> 1) Does "strict locking = no" negate "kernel oplocks = yes" ?
No.
> 2) What's the difference between the two?
One controls kernel oplocks, the other one controls whether smbd
checks SMB/SMB2/CIFS read/write requests against existing mandatory
locks.
> 3) What a good way to test if a file got a lock seen from the linux side and the windows side?
cat /proc/locks
On windows, write a Win32 program.
> 4) If a file has a lock, does that mean you can still open the file in linux or in windows, but can't write to it?
A lock from who ? CIFS/NFS/local process ?
> Any clarification between the two would be helpful.
Hope this helps.
More information about the samba
mailing list