From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anderson Pereira Ataides Subject: Re: How to change Dosemu files lock scheme? Date: Fri, 19 Mar 2004 09:31:01 -0300 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <200403190931.01228.anderson.pa@persogo.com.br> References: Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Content-Disposition: inline List-Id: Content-Type: text/plain; charset="iso-8859-1" To: linux-msdos@vger.kernel.org =46lavio, I told you in a reply to your personal email. Now listening from dosemu= =20 mantainers do you believe? You could try a Clipper-like language for Linux like FlagShip, but if y= ou read=20 the documentation it says something like this: "do not mix windows and = Linux=20 workstations acessing the same files. Due to filesystem differences it = may=20 corrupt your database files". So problem is not only with dosemu. The "perfect" solution is: use a database like MySQL, and make your=20 application access the database, not the filesystem. []s Anderson Pereira Ataides Em Qui 18 Mar 2004 20:54, Bart Oldeman escreveu: > On Thu, 18 Mar 2004, Fl=E1vio Eler de Melo wrote: > > Anyone has an idea of where in Dosemu sources I can find the sectio= n > > concerning files lock scheme? > > mfs.c, in src/dosext/mfs, lock_file_region() and share(). > > Problem is that DOS has 5 lock types whereas Linux only has 2 -- that= 's > why we have to use heuristics. > > Samba can on the other hand adminstrate all client accesses because i= t's a > server but a dosemu file server (serving all dosemus) does not exist > simply because it's never been an itch to really scratch for the > developers (I tried to improve a bit for 1.2.0 fixing things that wer= e > even problematic with just one dosemu running, but gave up after a wh= ile). > > You can see how files are locked using lsof. > > 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 - 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