[Samba] Change Filelocking
k.saldziunas at medbank.lt
Mon Jul 15 23:30:05 GMT 2002
According to Urban answer I understood that if one user open file she/he
must get Oplock (of course if share supports oplock deature). However I
always in that case get Oplock NONE. Where could be the problem ?
Pid DenyMode Access R/W Oplock Name
3568 DENY_NONE 0x2019f RDWR NONE /doc/file.doc
I use Samba 2.2.4
parameters oplock = yes
level2 oplocks = yes
> An oplock is something the server gives to the client that basically says
> that the client can cache the file and any operations on it. When someone
> else opens the file the server will send an oplock break to the client and
> the oplock will be set to none.
> It is not exclusive in the meaning that no one else can open the file, it
> is exclusive in the meaning that no one else has opened the file (yet).
> This client knows that it is the only user of this file.
> If you are on a system with kernel oplock support the only thing you need
> to do is open the file on the server and that will break the oplock. But
> the same thing happens if another client opens the file.
More information about the samba