[Samba] Problems with file locking over gnome-vfs (esp. OpenOffice.org)

Jeremy Allison jra at samba.org
Thu Oct 16 16:48:00 GMT 2008


On Thu, Oct 16, 2008 at 06:49:54PM +0200, Volker Lendecke wrote:
> > 
> > The one that bites is Linux -> Linux. This is because
> > the Gnome VFS has no locking primitives (not an expert
> > on Gnome VFS so people with more knowledge feel free
> > to contradict me).
> 
> Just FYI: I'm just coming from a customer with exactly this
> problem using cifs.ko. OpenOffice 2 is just broken when it
> comes to cross-platform locking. Period.

Oh that's a shame. Doesn't it make any fcntl lock calls
for exclusion ? I vaguely remember looking in the source
code a while ago and thought it did so.

> OpenOffice 3 does this differently with a vi-like lock file.
> This is not locked, but has the cleanup problem if a client
> has crashed and a different user wants to open the file.

Yeah, but that's manageable at least.

Jeremy.


More information about the samba mailing list