+Mailing list again

[global]
  # Default is yes.  You can also use veto oplock files on individual
  # shares instead.  kernel oplocks would be implicitly disabled if you
  # set oplocks to no.
  oplocks = no
  # Default is yes.
  level2 oplocks = no

[share]
  # Where needed - default is enabled.
  posix locking = no

man smb.conf has a good description of all these options along with
their default values.

Ray

On Wed, Oct 15, 2014 at 01:16:29PM +0000, Werf, C.G. van der (Carel) wrote:
> Ray,
> 
> Thanks...
> But what are the global settings syntaxes to disable these ?
> Kernel Oplocks = [No, False, 0]  ??
> Oplocks = [No, False, 0]
> Is level II oplocks then covered ??
> 
> What are the defaults, if no setting is added to the global config.
> Are the defaults dependent on OS-version, Sambar-version, Kernel-version ?
> 
> Unfortunately Samba manuals are rather fuzy  about this.
> 
> Carel 
> 
> -----Original Message-----
> From: Ray Van Dolson [mailto:[email protected]] 
> Sent: woensdag 15 oktober 2014 15:07
> To: Werf, C.G. van der (Carel)
> Cc: '[email protected]'
> Subject: Re: Samba and Oplocks
> 
> On Wed, Oct 15, 2014 at 08:50:06AM +0000, Werf, C.G. van der (Carel) wrote:
> > Hi All,
> > 
> > We are in the process of transfering our fileservers to a new 
> > OS-version.
> > 
> > Installed latest OS 6.5 and the current Samba3-version, which is Samba 
> > 3.6.9.  Data folders are on XFS filesystem. Data folders are exported 
> > as NFS3-shares to an SSL-login server
> > 
> > Data folders are exported as Samba-shares to several different
> > clients: - windows7, ubuntu, SL6x, MacOSX
> > 
> > Now it seems that some of the windows7-clients see files as being 
> > read-only because they seem to be locked.  I've read a lot of 
> > different info about file locking in Samba, but information seems very 
> > confusing.
> > 
> > So,my question is, considering the environment of mixed clients over 
> > CIFS and NFS, what is the preferable Samba-setting for locks, 
> > Kernel_oplocks, Oplocks etc ?
> > 
> > If anyone has a lot of samba experience, please share your thoughts on 
> > this subject.
> > 
> > Regards,
> > Carel van der Werf
> 
> This has been discussed a few times on the Samba mailing list.
> 
> My recommendations are to disable oplocks and level2 oplocks
> explicitly at the global level.
> 
> In some cases you'll want to disable posix locks at the share level.
> 
> Ray

Reply via email to