From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Camilo Yanquen Subject: Re: CLIPPER LOCKS (again) Date: Wed, 17 Jul 2002 13:15:37 GMT Sender: linux-msdos-owner@vger.kernel.org Message-ID: <20020717.13153700@negsis.net.co> References: <02071214371900.01190@anderson.cdc.net> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <02071214371900.01190@anderson.cdc.net> List-Id: Content-Type: text/plain; charset="iso-8859-1" To: Anderson Pereira Ataides , linux-msdos@vger.kernel.org Yo tambien tengo el mismo problema y lo he solucionado en parte con SAMBA con la opcion --kerner oplocks =3D yes -- en /etc/smb.conf y despues hago las exepciones con la opcion --veto oplock files =3D /*.*/ -- en la seccion especifica del share aqu=ED voy a pegar una parte de smb.conf que me ha funcionado [global] workgroup =3D NEGSIS server string =3D Windows 98 SE security =3D SERVER # security =3D share encrypt passwords =3D Yes map to guest =3D Bad User log file =3D /usr/local/logs/samba.log # keepalive =3D 30 guest ok =3D True os level =3D 2 # kernel oplocks =3D Yes # veto oplock files =3D /*.*/ # en esta parte agrego los archivos= que necesito excluir de el bloqueo (locK) para mas informacion miren el libro de Usando Samba de Orelly >>>>>>>>>>>>>>>>>> Mensaje original <<<<<<<<<<<<<<<<<< El 12/07/02, 12:37:19, Anderson Pereira Ataides escribi=F3 sobre el tema CLIPPER LOCKS (ag= ain): > Hello, > Again I'm asking for help, because I did not fix my problem. Remember= ing my > story is that I have an application written using Clipper 5.2 and whe= n a > workstation with linux+dosemu opens a file and lock a record (or the entire > file), another workstation running Windows still can open that file, meaning > that it can't see the file is locked by dosemu. Trying this operation opening > the file in Windows first, the problem still occurs. > I upgraded kernel to 2.4.18 but problem is still there. > I'm using: > kernel 2.4.18 > samba 2.2.0 > dosemu-1.1.2 > Mr Sergey Suleymanov sent me a message telling me to use a fix (see below) > but I did not understand it. How am I supposed to use this fix? Do I = have to > type it at linux prompt? Is it a script? Is it something to put into = a > configuration file? > Greg LaBossiere also sent me a message suggesting to upgrade kernel. = So I did > it but did not solve my problem. > Thanks, > Anderson Pereira Ataides > Linux User #277884 > ------------------------------------------------ > Anderson> Hi, I've got an application develop using Clipper 5.01 and > Anderson> I'm having trouble with locks. > Anderson> How can I solve this problem? Is it a dosemu bug? > Can you try this fix? > diff -rubN dosemu-1.1.3/src/dosext/mfs/mfs.c > dosemu-1.1.3.my2/src/dosext/mfs/mfs.c > --- dosemu-1.1.3/src/dosext/mfs/mfs.c Tue Apr 23 15:16:39 2002 > +++ dosemu-1.1.3.my2/src/dosext/mfs/mfs.c Mon May 6 10:18:53 = 2002 > @@ -3795,6 +3866,7 @@ > ret =3D fcntl (fd,F_SETLK,&larg); > Debug0((dbg_fd, "lock fd=3D%x rc=3D%x type=3D%x when= ce=3D%x > start=3D%lx, len=3D%lx\n", > fd, ret, larg.l_type, larg.l_whence, > larg.l_start,larg.l_len)); > + if (ret =3D=3D -1) SETWORD(&(state->eax), ACCESS_DEN= IED); > return ret !=3D -1 ? TRUE : FALSE; > } > break; > -- > Sergey Suleymanov > - > - > 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