Re: Samba and kernel oplocks - Smbmount

Stephen Lee
2002-08-29T04:39:21Z

On Tue, 2002-08-27 at 15:55, Stephen Lee wrote:
> Hi,
>
> I am running a Foxpro application under Dosemu 1.1.3.2 (xdosemu) with
> the keyboard patches and things seem to be running smoothly. Problems
> occur when some users access the same Foxpro db files via Samba 2.2.4.
> Files locked under Dosemu/Foxpro are not locked when accessed by Samba.
> Some of the samba config settings include:
>
> kernel oplocks = yes
> locking = Yes
> oplocks = Yes
> level2 oplocks = Yes
> oplock contention limit = 2
> posix locking = Yes
> strict locking = No
>
> This is a Redhat 7.2 systems running kernel 2.4.18. What else do I need
> to configure to get Dosemu file locks recognized by Samba?

Just for kicks, I tried to access the Foxpro db files via an smb share
using smbmount. Instead of pointing $_hdimage to the Drdos/Foxpro
directory directly, I pointed it to a directory mounted to the smb share
containing the Drdos/Foxpro files. The idea was to make Dosemu use the
Samba file locking system. Well...Dosemu runs and Foxpro starts but the
whole process is REALLY slow. So slow that I didn't have the patience to
test whether the file locking problem was fixed. It's not eating up cpu
cycles either (according to top).

Has anyone tried to access smb shares from Dosemu and if yes how did you
do it?

Thanks,
Stephen