From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anderson Pereira Ataides Subject: dosemu and CLIPPER locks (again) Date: Fri, 31 Jan 2003 18:12:30 -0200 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <03013118123001.01190@anderson.cdc.net> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: List-Id: Content-Type: text/plain; charset="iso-8859-1" To: Lista dosemu Hi all, Ok it's a boring thing, but I have to tell you some experience I had wi= th=20 this issue. dosem insists in not seeing Windows locks. Note that dosemu is accessin= g dbf=20 file in local Linux filesystem and Windows can not see dosemu file lock= s. The=20 problem still occurs between two Linux workstation one accessing locall= y an=20 other via NFS. A friend (from this list) suggested me access dbf via smbmounted volume= =2E I=20 decided to try it and bingo. It worked but I noticed something wrong. U= sing=20 DBU I opened a dbf file in dosem and Windows "recognized" locked file a= nd=20 gave me a warning and did nod display file (that was expected). When I = opened=20 a file in Windows, the DBU (in dosemu) displayed an error message (Corr= uption=20 detected) and aborted. I tried to hack mfs.c an saw some comments about locking. My conclusion= is=20 that this problem will not be solved between windows and Linux, because= they=20 do not "speak" same language when topic is locking. I saw there is a pi= ece of=20 code extracted from samba source an comment was "I don't know why it's=20 there... Someone is playing games with lock/unlock". So I thought: samb= a team=20 probably have problem too. How do they solve this problem? Do they cope= with=20 locks keeping track of locks themselves instead of locking linux filesy= stem? Unhappy with this situation I tried to use FlagShip (a language similar= to=20 CLIPPER). Their documentation says that dbf files can not be accessed=20 simultaneously from Windows (DOS) and Linux because of locking issues. = I=20 ignored this comment and comp=EDled a piece of program and result was t= he same=20 that in dosemu: Windows files did not see FlagShip locks. Do you think we can solve it? Hope my comments can help dosemu development team. Ooops! Almost forgot to tell you my configuration: Conectiva Linux 7.0 kernel 2.4.18 (compiled myself) dosemu 1.1.4.9 (compiled myself) samba 2.2.7a (compiled myself) MS-DOS 7 (win98) []s Anderson Pereira Ataides - 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