[Samba] Re: What affects file locking?
jra at samba.org
Thu Aug 14 18:57:34 GMT 2008
On Thu, Aug 14, 2008 at 01:47:41AM +0000, Doug Germann wrote:
> Doug Germann <76066.515 <at> CompuServe.com> writes:
> > Jeremy writes:
> > Ok, deny_none should conflict with deny_write, so you should
> > see "someone else has this file open" between WinXP and
> > the Ubuntu clients.
> > However, for UNIX clients they need to provide mutual exclusion
> > using byte range locks (the traditional UNIX way) not deny
> > modes. I'm not sure if OpenOffice on Ubuntu does this (it
> > should).
> > Jeremy.
> Many thanks.
> You are right--between Ubuntu and WinXP, the files are locked appropriately.
> But how do I get these byte-range locks between the Ubuntu clients? I have
> searched in Google and on Ubuntuforums without luck.
The application should ask for them via the fcntl API. I'm pretty sure
OpenOffice does do this. How are you mounting the Samba server from
the Ubuntu boxes ? CIFSFS does pass along byte range locks.
More information about the samba