Linux MS DOS discussions
 help / color / mirror / Atom feed
* Opening a file for exclusive access in DOSEMU
@ 2004-01-30 17:37 Vasil Daskalov
  2004-01-30 20:25 ` Bart Oldeman
  0 siblings, 1 reply; 2+ messages in thread
From: Vasil Daskalov @ 2004-01-30 17:37 UTC (permalink / raw)
  To: linux-msdos

Hi all,

I'm trying to run a Clipper database program in network mode in DOSEMU. The
program opens some files for exclusive access, assuming that no other
program can open them. This assumption holds true under MSDOS 6.22, Windows
2000 and other network environments. However, two instances of this program,
running in two instances of DOSEMU on one Linux machine, can open these
files simultaneously, ruining the program logic. The machine runs Debian
Linux 3.0, kernel version 2.2.20. The DOSEMU is the latest version, 1.2, the
DOS is MS DOS 6.22. The database files are located on the DOSEMU drive C: ,
which is a linux directory, with a symlink " ~/.dosemu/drives/c " pointing
to it. I tried moving the files to a lredir-ed drive with no success. Tried
to run SHARE.EXE in AUTOEXEC.BAT - again no success. This problem is
apparently not Clipper-related, because it can be easily reproduced with two
instances of a simple QBASIC program, which opens a file in the following
fashion:

OPEN "FILE.TMP" FOR BINARY ACCESS READ WRITE LOCK READ WRITE AS #1

Then the two instances easily open the file simultaneously, which shouldn't
be possible.

Besides, DOSEMU gives me the following message:

SHAREing doesn't work on drive C: (probably NFS volume?)

This is probably related to the problem. I wonder, why SHAREing doesn't
work? I'm sure I don't have any NFS volumes in my system. Any suggestions?

TIA,
Vassil Daskalov




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-30 20:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-30 17:37 Opening a file for exclusive access in DOSEMU Vasil Daskalov
2004-01-30 20:25 ` Bart Oldeman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox