From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Oscar A. Valdez" Subject: Re: [Fwd: Re: Samba and kernel oplocks - Smbmount] Date: 29 Aug 2002 14:46:47 -0600 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <1030654007.1131.55.camel@wzowski> References: Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: List-Id: Content-Type: text/plain; charset="iso-8859-1" To: Bart Oldeman Cc: Stephen Lee , dosemu On my Samba server, the shares accessed via Dosemu are configured with = 'oplocks =3D no' and 'level2 oplocks =3D no', because of particularitit= es of the shared application. I haven't tried Dosemu on shares without those two options, but since oplocks are a NetBios feature, I don't see why it shouldn't work. Oscar El jue, 29-08-2002 a las 12:54, Bart Oldeman escribi=F3: > On 29 Aug 2002, Stephen Lee wrote: >=20 > > On Thu, 2002-08-29 at 11:20, Oscar A. Valdez wrote: > > > I don't know what version of the kernel comes with 1.1.3.2, but, = like > > > Bart said, your $_hdimage gets converted to an lredir'd drive, an= d if > > > your kernel doesn't handle locks properly on lredir'd drives, you= won't > > > be able to set locks on C: > > >=20 > > > Bart, what version of the kernel comes with 1.1.3.2? Is it OK to = use a > > > higher version of kernel.sys with it? >=20 > There is no kernel that comes with 1.1.3.2 - it's just a development > test version of DOSEMU. In general DOSEMU is FreeDOS kernel agnostic = - > though newer kernels tend to work better than older ones. >=20 > > > Oscar > >=20 > > Hmmm...does that mean I should be using Freedos and not DRDOS if I = want > > proper kernel locking? I hope Foxpro works well with Freedos! >=20 > FreeDOS should work just like DR-DOS in this respect but it never > hurts to try FreeDOS. >=20 > In general DOS talks to DOSEMU lredir'ed drive through the redirector > interface. This is a list of calls you can find in Ralf Brown's > Interrupt List at INT2F/AX=3D11xx. It's a horrible interface because = it > wasn't designed as such - but we have to live with it to get propriet= ary > DOSes to access lredir'ed drives. >=20 > The same redirector interface is what DOS uses to talk to network dri= ves > in general and with MSCDEX/(FD/SHSUCDEX)/NWCDEX for CDROM drives too. >=20 > FreeDOS kernels before ~2026 did not translate > --------D-215C------------------------------- > INT 21 - DOS 3.0+ - "FLOCK" - RECORD LOCKING > into > --------N-2F110A----------------------------- > INT 2F CU - NETWORK REDIRECTOR (DOS 4.0+) - LOCK/UNLOCK REGION OF FIL= E >=20 > That was the problem - the redirector interface is a relatively recen= t > addition to FreeDOS. DR-DOS should not have this bug. >=20 > I suspect that the way that DOSEMU tries to implement DOS locking > techniques is not compatible with mandatory locking on the Samba Unix > side. >=20 > Bart - 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