On Fri, Mar 19, 2004 at 01:02:32AM +0000, Bart Oldeman wrote:
> On Thu, 18 Mar 2004,  Flávio Eler de Melo wrote:
> 
> > Anyone has an idea of where in Dosemu sources I can find the section
> > 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 it'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 were
> even problematic with just one dosemu running, but gave up after a while).

Why not implement locking using temporary files.
Eg. lock(file) == create file.lockfile with info about type of lock inside
a file. 

-- 
Witold Filipczyk tohu-bohu
<[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to