[Samba] Re: What affects file locking?
76066.515 at CompuServe.com
Fri Aug 8 03:10:50 GMT 2008
John Drescher <drescherjm <at> gmail.com> writes:
> On Thu, Aug 7, 2008 at 9:16 PM, Doug Germann <76066.515 <at> compuserve.com>
> > Hi--
> > We are in a production environment with one WinXP box and several linux
> > We have discovered that the WinXP and linux boxes seem to respect each
> > file locks, but that the linux boxes do not respect each other's locks. In
> > words, box 1 can have a file open, and at the same time box 2 can open it
> > edit and save the file.
> > We have smb.conf set with level2 oplocks yes, kernel oplocks no, and
> > When we first noticed the problem the last two were set to yes. The change
> > made the locks work sometimes, but not reliably.
> > Are there other things besides the oplocks and the smb.conf file which can
> > affect file locking? How would you trouble shoot this?
> Are the linux machines sharing the file using samba and mounting the
> share using cifs?
Yes. From fstab:
//samba1/doug2 /sam/doug2 cifs
uid=doug,gid=doug 0 0
More information about the samba