Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: rf131 on March 03, 2006, 05:25:24 AM

Title: HOWTO - Modify smb.conf templates for oplocks?
Post by: rf131 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
Title: HOWTO - Modify smb.conf templates for oplocks?
Post by: JonB 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
Title: HOWTO - Modify smb.conf templates for oplocks?
Post by: rf131 on March 03, 2006, 09:43:58 PM
Thanks.  That was exactly what I was looking for!

Kevin
Title: HOWTO - Modify smb.conf templates for oplocks?
Post by: jefash on August 08, 2006, 10:32:34 PM
does this resolve the flat file corruption in v7.0 ?