Solaris and Samba Record Locking

Jeremy Allison jra at samba.org
Mon May 20 13:59:01 GMT 2002


On Mon, May 20, 2002 at 01:19:31AM -0700, Anjaneya Sastry wrote:
> Hello Everybody,
>     Can you help ?
>  Our application is in RMCOBOL. We use Rmcobol Index
> files. These are located in Solaris 2.8. Using Samba
> 2.2 we created a share and accessing the directory
> from windows. 
> 
>  From windows we are running RMCOBOL runtime ver 7.0
> and manipulating the shared files. At the same time
> other programs may be accessing these files by
> RUNCOBOL of solaris runtime which is in Solaris
> system.
> 
> Our problem is the locks set by Windows cleints are
> not reflected in solaris runtime.
> 
> This same problem we faced in Pcnetlink 1.2 (even
> after setting the parameter refelct client created
> locks in solaris ).
> 
> Can this type of locking is possible ? Please let me
> know. 

Yes, you need to remove the oplocks that Samba is
granting to clients in order for the Windows locks to
be seen by the UNIX clients.

Try adding the following two lines to your smb.conf,

oplocks = no
strict locking = yes

This will slow Samba down some but will cause the Windows
locks to be correctly seen under UNIX.

Jeremy.




More information about the samba-technical mailing list