On Wed, 6 Nov 2002, Siim Vahtre wrote:

> How much ways dosemu actually knows to lock one file?

just a few days ago I wrote down the way how DOSEMU handles file locking 
now (since 1.1.3.3) here:
http://marc.theaimsgroup.com/?l=linux-msdos&m=103627393213889&w=2
see src/dosext/mfs/mfs.c for the implementation.

There is a fundamental problem in that DOS locking is incompatible with 
UNIX locking. Now if you use smbfs and samba you add two extra layers 
where things can go wrong. This makes it complex. If the file server is 
not running Windows then it's probably better to use NFS instead.

The locking mechanism I did not mention was region locking, which however 
can probably be solved now in certain cases by using the 64-bit 
lock functions. See
http://marc.theaimsgroup.com/?l=linux-msdos&m=103626684509236&w=2
(this is not implemented yet; patches are welcome :)

Bart

-
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