Koozali.org: home of the SME Server

Settiing oplocks = no on Samba Ibay

Offline jimdhaem

  • 2
  • +0/-0
Settiing oplocks = no on Samba Ibay
« 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Settiing oplocks = no on Samba Ibay
« Reply #1 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Settiing oplocks = no on Samba Ibay
« Reply #2 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.)


Offline jimdhaem

  • 2
  • +0/-0
Re: Settiing oplocks = no on Samba Ibay
« Reply #3 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/


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Settiing oplocks = no on Samba Ibay
« Reply #4 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.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Settiing oplocks = no on Samba Ibay
« Reply #5 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?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Settiing oplocks = no on Samba Ibay
« Reply #6 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.

DennisPic

Re: Settiing oplocks = no on Samba Ibay
« Reply #7 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