Author Topic: Oplocks on samba  (Read 1380 times)

linusoft

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Oplocks on samba
« on: April 17, 2014, 02:29:01 pm »
I am using Zentyal 3.3 with a number of network shares configured.
One of those shares hosts a Foxpro database, which requires oplocks to be disabled. However, I don't want to disable oplocks for every network share.

Is there any way I can configure Zentyal to disable oplocks on one share. I know I can edit smb.conf, but that gets overwritten every time I change anything.

Thanks

illunis

  • Guest
Re: Oplocks on samba
« Reply #1 on: April 17, 2014, 02:43:46 pm »
try editing
/usr/share/zentyal/stubs/samba/smb.conf.mas  ;)

Gopher

  • Zen Apprentice
  • *
  • Posts: 45
  • Karma: +7/-0
    • View Profile
Re: Oplocks on samba
« Reply #2 on: April 17, 2014, 03:10:20 pm »
We use an accounting package developed in foxpro, in its early days the "server" was a shared folder on a dedicated Windows 2000 machine. There were endless issues with oplocks, timeout autodisconnects etc some of which were solved with a simple command line entry the developers neither cared nor bothered to know about.
After switching to Samba all problems vanished, and we only use standard settings. The only time there were issues was the time I did start altering the Samba config to what its own documentation claims is the full and correct manner.