Re: How to change Dosemu files lock scheme?

Bart Oldeman
2004-03-18T23:54:02Z

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).

You can see how files are locked using lsof.

Bart