From mboxrd@z Thu Jan 1 00:00:00 1970 From: Witold Filipczyk Subject: Re: How to change Dosemu files lock scheme? Date: Sat, 20 Mar 2004 17:26:28 +0100 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <20040320162628.GA2655@pecet.fixsoftware.pl> References: Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: List-Id: Content-Type: text/plain; charset="iso-8859-1" To: bartoldeman@users.sourceforge.net Cc: =?iso-8859-2?Q?Fl=E1vio?= Eler de Melo , linux-msdos@vger.kernel.org, jefferson On Fri, Mar 19, 2004 at 01:02:32AM +0000, Bart Oldeman wrote: > On Thu, 18 Mar 2004, Fl=E1vio Eler de Melo wrote: >=20 > > Anyone has an idea of where in Dosemu sources I can find the sectio= n > > concerning files lock scheme? >=20 > mfs.c, in src/dosext/mfs, lock_file_region() and share(). >=20 > Problem is that DOS has 5 lock types whereas Linux only has 2 -- that= 's > why we have to use heuristics. >=20 > 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). Why not implement locking using temporary files. Eg. lock(file) =3D=3D create file.lockfile with info about type of lock= inside a file.=20 --=20 Witold Filipczyk tohu-bohu - 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