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
-
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
-
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
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.
-
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.)
-
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/
-
...
force create mode = 777
force directory mode = 777
create mode = 777
directory mode = 777
...
777 is *never* necessary and should *never* be used.
-
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?
-
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.
-
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