[Samba] problem saving word documents

Joel Hammer Joel at HammersHome.com
Tue Sep 10 21:47:01 GMT 2002

The default for samba appears to be to optimize speed, not reliability.
So, oplocks are enabled by default.
OPLOCKS ARE A BAD IDEA. MS THOUGHT THEM UP, I think.  One poster wrote
previously that oplocks in an all windows environment caused headaches. Do
you know what they are? A client caches a file locally on his machine,
that's what. Then, if there is an interrruption of communication with
the server, the updated file never get written back properly (the oplock
is taken away from the client), and data corruption results.

Use every thing you can to increase reliablity.  Disable oplocks and read
about syncing. There is nothing that decreases performance like data


On Tue, Sep 10, 2002 at 02:40:20PM +0200, Johan Coenen wrote:
> concerning strict sync - sync always - strict locking:
> Well, I did take a look at those options, but because of what I read in the 
> smb.conf man page, I thought I'd better leave them off (default). It looks 
> like enabling them just slows things down?
> When a share level parameter is set in the global section, doesn't that 
> mean that that option then goes for every share?
> I didn't put them there. I just left them at their default value (i.e. 
> didn't put them in my smb.conf file)
> At 07:57 10/09/2002 -0400, Joel Hammer wrote:
> >[...] that this is just a common
> >problem with oplocks, I thought anybody would have told you that.
> Would you recommend disabling oplocks?
> Cheers,
> Johan

More information about the samba mailing list