From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Oscar A. Valdez" Subject: Re: Samba and kernel oplocks - Smbmount Date: 29 Aug 2002 08:39:48 -0600 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <1030631988.1163.11.camel@wzowski> References: <1030488939.18055.19.camel@ralph.plexio.private> <1030595962.18043.97.camel@ralph.plexio.private> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1030595962.18043.97.camel@ralph.plexio.private> List-Id: Content-Type: text/plain; charset="iso-8859-1" To: Stephen Lee Cc: dosemu I'm accessing Samba shares with Dosemu 1.0.2 and 1.0.2.1. File locking works flawlessly and with simultaneous access by Window$ clients. I mount the Samba share with mount -t smbfs //SERVER/SHARE /mnt/MOUNTPOINT -o credentials=3DCREDENTI= ALS_FILE,workgroup=3DWORKGROUP,rw,gid=3DGID,fmask=3D770 and then, within Dosemu lredir F: linux\fs/mnt/MOUNTPOINT (Of course, all the stuff in capitals needs to be substituted correspon= dingly). Works fine. Oscar El mi=E9, 28-08-2002 a las 22:39, Stephen Lee escribi=F3: > On Tue, 2002-08-27 at 15:55, Stephen Lee wrote: > > Hi, > >=20 > > I am running a Foxpro application under Dosemu 1.1.3.2 (xdosemu) wi= th > > the keyboard patches and things seem to be running smoothly. Proble= ms > > occur when some users access the same Foxpro db files via Samba 2.2= =2E4. > > Files locked under Dosemu/Foxpro are not locked when accessed by Sa= mba. > > Some of the samba config settings include: > >=20 > > kernel oplocks =3D yes > > locking =3D Yes > > oplocks =3D Yes > > level2 oplocks =3D Yes > > oplock contention limit =3D 2 > > posix locking =3D Yes > > strict locking =3D No > >=20 > > 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? >=20 > Just for kicks, I tried to access the Foxpro db files via an smb shar= e > using smbmount. Instead of pointing $_hdimage to the Drdos/Foxpro > directory directly, I pointed it to a directory mounted to the smb sh= are > containing the Drdos/Foxpro files. The idea was to make Dosemu use th= e > Samba file locking system. Well...Dosemu runs and Foxpro starts but t= he > 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 c= pu > cycles either (according to top). >=20 > Has anyone tried to access smb shares from Dosemu and if yes how did = you > do it? >=20 > Thanks, > Stephen >=20 >=20 > - > To unsubscribe from this list: send the line "unsubscribe linux-msdos= " in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html - To unsubscribe from this list: send the line "unsubscribe linux-msdos" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html