How to Turn of oplocks in version 2?

David J. Reiter dave at davidr.sd.logicon.com
Thu Dec 3 17:39:19 GMT 1998


Greetings All,
 I am trying to turn off oplocks and can not seem to figure
out which parameters to use. I have tried setting
   oplocks = False in both the global section and in my
share section. I have also tried setting  veto oplock files = /*.txt/
in my share section. Each time I try this and restart the 
smbd program I get the same behaviour on the PC side. The file is
cached on the PC side (I am running Windows 95) The odd thing
is that if I decrease the file size on the unix side the PC
side is also truncated, but will still show the contents of the
original file, not the new one. If anyone has got oplocks turned
off and could send me their smb.conf file I would really appreciate
it. Thanks in advance,

David.

(My current smb.conf file)

[global]
  printing = sysv
  printcap name = /etc/printcap
  load printers = yes
  keepalive = 60
  guest account = nobody
  socket options = TCP_NODELAY 
  username map = /opt/samba/lib/umap
  read prediction = False
  oplocks = no
  debug level = 11
  lock directory = /opt/samba/lib/locks
  kernel oplocks = no
  ole locking compatibility = no
  share modes = yes
  locking = yes
  strict locking = yes

[pc]
   path = /NEWPC
   public = yes
   only guest = yes
   writable = yes
   printable = no
;  I have tried share modes both yes and no, that doesnt seem to
;  change anything.
   share modes = yes
;  I think setting oplocks False should do the trick but it doesn't
;  seem to help.
   oplocks = False
;  So I tried to set veto to veto all files, but again this didn't
;  seem to help any.
   veto oplock files = /*/



More information about the samba mailing list