Opportunistic locking

Stu Roberts sroberts at csystemssoftware.com
Thu Jan 21 23:01:18 GMT 1999


I have installed Samba 2.0 on SCO Open Server 5.0.4 and have a W95 and a W98
client attached.  Each client maps out the same share successfully.  

The problem is that the clients are not receiving the message from samba
about opportunistic locking.  In smb.conf, "oplocks = no " is set.  I also
set the debug level appropriately to monitor the activity of samba.  When
previously read data from an open file is changed and re-read, the client
does not see the change, indicating the client has cached the file.  No
network activity was observed in the debug log files.  This indicates the
client is caching the file and not receiving the message from samba that
there is to be no opportunistic locking.  

Is there another way to signal the client from samba not to cache?

My smb.conf file is listed below:

   printing = bsd
   printcap name = /etc/printcap
   load printers = yes
   max xmit = 8192
   dead time = 0
   keep alive = 60
   status = yes
   log file = /usr/local/samba/log.%m
   lock directory = /usr/local/samba/var/locks
   preserve case = yes
   security = share

  comment = cSys Link File
  path = /usr/ubb/DATA
  max connections = 0
  writable = yes
  create mask = 0765
  oplocks = no

Stu Roberts
sroberts at csystemssoftware.com <mailto:sroberts at csystemssoftware.com> 
c-Systems Software, Inc.
6012 W. Campus Circle Drive
Irving, TX 75063
(972) 580-0700 (voice)
(972) 580-7722 (fax)

More information about the samba mailing list