Koozali.org: home of the SME Server

HOWTO - Modify smb.conf templates for oplocks?

rf131

HOWTO - Modify smb.conf templates for oplocks?
« on: March 03, 2006, 05:25:24 AM »
Hi There,

I think I have enough understanding of the templates method of modifying configuration files.  I looked in the /etc/e-smith/templates/etc/smb.conf directory and found the 11oplocks file, which looks like the one I need to copy to the templates-custom directory and modify.

I do not understand the contents of this file, and where to set oplocks=false.  This file doesn't look like some of the others where you see a parameter with an = sign.  It almost looks like you can set oplocks with some sort of command line string.  If that is the case someone please provide the syntax.

I would appreciate any pointers on this.

Thanks,
Kevin

Offline JonB

  • *
  • 351
  • +0/-0
HOWTO - Modify smb.conf templates for oplocks?
« Reply #1 on: March 03, 2006, 08:01:33 AM »
OpLocks enabled/disabled is now a database property

You will need to do

/sbin/e-smith/db configuration setprop smb OpLocks disable

/sbin/e-smith/signal-event ibay-modify

Jon
...

rf131

HOWTO - Modify smb.conf templates for oplocks?
« Reply #2 on: March 03, 2006, 09:43:58 PM »
Thanks.  That was exactly what I was looking for!

Kevin

jefash

HOWTO - Modify smb.conf templates for oplocks?
« Reply #3 on: August 08, 2006, 10:32:34 PM »
does this resolve the flat file corruption in v7.0 ?