Locking Problems with samba2.2.1a

Jeremy Allison jra at samba.org
Thu Oct 11 14:22:17 GMT 2001


On Thu, Oct 11, 2001 at 05:20:15PM -0400, LI,YING (HP-Cupertino,ex1) wrote:
> Hi All,
> 
> I have a byte range locking problem on samba2.2.1a, that is maintains
> locking consistency among UNIX, Samba and Windows. 
> 
> According to my experiment on HP-UX, a Windows application couldn't detect
> the file byte range locks created by a UNIX local application in samba share
> directory. Similarly Samba (smbstatus) couldn't discover the byte range
> locks generated from UNIX local process if that file is in a samba share
> directory. Actually we expect Windows application would be aware of any file
> byte range locks in share directory, regardless of Samba locks or UNIX
> locks. 
> 
> Anybody could tell me whether Samba supports locking consistency, or what
> configuration serves it.
> 
> Any help would be greatly appreciated.

You're running into oplock consistency problems. On a UNIX without
oplock awareness (only IRIX and Linux currently have this, not HPUX)
then local UNIX apps won't see Windows locks or vica versa.

To fix this on HPUX at the cost of performance, set

oplocks = no
strict locking = yes

in your smb.conf file.

Jeremy.




More information about the samba-technical mailing list