Linux MS DOS discussions
 help / color / mirror / Atom feed
* problems with locking
@ 2002-11-06 10:59 Siim Vahtre
  2002-11-06 11:55 ` Siim Vahtre
  0 siblings, 1 reply; 16+ messages in thread
From: Siim Vahtre @ 2002-11-06 10:59 UTC (permalink / raw)
  To: linux-msdos


Hi.

I need to use some dosemu clients(running old database programs made in
turbo pascal) that read/write paradox databases on linux samba server.
However, it seems that samba and dosemu doesn't share their thoughts about
file locking.

For example, when I open (read-only!) some file (let's say "L:\test.txt"
that is actually "/mnt/samba/test.txt") then I can't open the same file
with another dosemu. (It says "Access denied.")

smbstatus shows:
Pid    DenyMode    R/W  Oplock Name
2347   DENY_NONE   RDRW NONE   /mnt/samba/test.txt

DenyMode is DENY_NONE, so I should be able to at least open the file
read_only from another client aswell, right?

Dosemu version is 1.0.2
Samba version is 2.2.3a-6
The OS on Dosemu is FreeDOS (1.1.24c)

And even if I can get this to work... will I be able to use bytelocking
(for databases) aswell?

Or in general - does anyone know how well one old TPascal program with
paradox databases might work on dosemu?

Any hints/helps are deeply appreciated.



^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: dosemu locking capabilities
@ 2002-11-07  5:21 Siim Vahtre
  2002-11-07 10:43 ` Marcel van der Heide
  0 siblings, 1 reply; 16+ messages in thread
From: Siim Vahtre @ 2002-11-07  5:21 UTC (permalink / raw)
  To: linux-msdos

> 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 file server is Linux. However, there are also some Windows machines
who want to say a word. And they all(Dosemu and Windows clients) must work
together well.

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

So region locking does not work at all (atm)?
In any case? (That is my primary concern, actually...)



^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <Pine.SOL.4.31.0211070716550.920-100000@pitsa.pld.ttu.ee>]

end of thread, other threads:[~2002-11-09 13:44 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-06 10:59 problems with locking Siim Vahtre
2002-11-06 11:55 ` Siim Vahtre
2002-11-06 13:44   ` Michal Samek
2002-11-06 14:20     ` Siim Vahtre
2002-11-06 14:30       ` Stephen Lee
2002-11-06 14:54         ` Siim Vahtre
2002-11-06 17:01           ` Siim Vahtre
2002-11-06 20:58             ` dosemu locking capabilities Siim Vahtre
2002-11-06 21:13               ` Stephen Lee
2002-11-06 21:21               ` Bart Oldeman
  -- strict thread matches above, loose matches on Subject: below --
2002-11-07  5:21 Siim Vahtre
2002-11-07 10:43 ` Marcel van der Heide
2002-11-07 22:22   ` Anderson Pereira Ataides
2002-11-08 15:15     ` Marcel van der Heide
2002-11-09 13:44   ` Siim Vahtre
     [not found] <Pine.SOL.4.31.0211070716550.920-100000@pitsa.pld.ttu.ee>
2002-11-07  6:26 ` Bart Oldeman

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