Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: jimdhaem on May 14, 2008, 06:21:18 PM

Title: Settiing oplocks = no on Samba Ibay
Post by: jimdhaem on May 14, 2008, 06:21:18 PM
My database application requires oplocks to be set to No when accessed from Windows clients. How can I customize the Samba Shares (Ibay named dataflex) to add this and other options
Title: Re: Settiing oplocks = no on Samba Ibay
Post by: cactus on May 14, 2008, 06:26:06 PM
My database application requires oplocks to be set to No when accessed from Windows clients. How can I customize the Samba Shares (Ibay named dataflex) to add this and other options
From: http://wiki.contribs.org/SME_Server:Documentation:Technical_Manual:Chapter3#Samba_.28smbd.29

Code: [Select]
db configuration setprop smb OpLocks disabled
signal-event ibay-modify

Above will disable oplocks for all ibays, if you want to have oplocks disabled for one ibay only you will have to create a custom-template fragment based on the original fragment setting the oplocks setting to exclude the ibay(s) you like. For more information on (custom-)templates have a look at the SME Server Developers Guide linked in the wiki.
Title: Re: Settiing oplocks = no on Samba Ibay
Post by: mercyh on May 14, 2008, 06:32:04 PM
jimdhaem,

If you care to share, What application are you using? I would be interested in knowing what your problem is and if the above setting fixes it.

(I have had no end of grief with Foxpro.)

Title: Re: Settiing oplocks = no on Samba Ibay
Post by: jimdhaem on May 14, 2008, 07:17:36 PM
The application is DataFlex  3.2 - a database. Currently running on a Novell 3.12 server (old but it works and only goes down when I tell it to). Wish to move it to SME server- other users have reported problems with Windows and Samba; here are suggested settings from a Linux CentOS user.

[DataFlex]
        printable = no
        comment = DataFlex ReadWrite area
        guest account = nobody
        force create mode = 777
        force directory mode = 777
        create mode = 777
        directory mode = 777
        writable = yes
        browseable = no
        guest ok = yes
        force group = root
        force user = root
        public = yes
        dos filetimes = yes
        dos filetime resolution = yes
        locking = yes
        oplocks = no
        veto oplock files = /*.dat/*.hdr/*.vld/*.k*/*.tag/*.cfg/*.log/

Title: Re: Settiing oplocks = no on Samba Ibay
Post by: CharlieBrady on May 14, 2008, 08:51:21 PM
...
        force create mode = 777
        force directory mode = 777
        create mode = 777
        directory mode = 777
...

777 is *never* necessary and should *never* be used.
Title: Re: Settiing oplocks = no on Samba Ibay
Post by: cactus on May 14, 2008, 08:57:48 PM
777 is *never* necessary and should *never* be used.
Could you perhaps suggest what would be a better setting, I suspect 644 or 755. Charlie can you confirm either or suggest even better?
Title: Re: Settiing oplocks = no on Samba Ibay
Post by: CharlieBrady on May 14, 2008, 10:24:45 PM
Could you perhaps suggest what would be a better setting, I suspect 644 or 755. Charlie can you confirm either or suggest even better?

That depend on whether they are files or directories, and whether they should be publicly readable, and whether they need to be writable by group members. The i-bay panel settings each generate appropriate permissions.
Title: Re: Settiing oplocks = no on Samba Ibay
Post by: DennisPic on May 19, 2008, 10:35:45 PM
Hi,

I cannot confirm the Samba options, but I can confirm that oplocks should be disabled if you are using the DataFlex database. You can visit our newsgroups for more information on DataFlex and get peer feedback from other DataFlex developers that may have done this already: http://www.dataaccess.com/newsgroups

Dennis Piccioni
Data Access Worldwide
http://www.dataaccess.com/support