CLIPPER LOCKS
Hi,
I've got an application develop using Clipper 5.01 and I'm having trouble with locks.
When I lock a file (or record) in one workstation using Windows another workstation can not open the same file, that's ok. But when I lock a file in the same workstation, my Linux + Dosemu does not see that file is locked and open it anyway. The same problem occurs between two Linux+Dosemu Workstations.
This problem does not happen when two dosemu sessions are opened in the same workstation. In this case, file locked in first session can not be read by the second session.
Because of this problem, my application is loosing data, because of concurrent updates to a locked file.
How can I solve this problem? Is it a dosemu bug?
I'm using dosemu 1.1.2.
Anderson Pereira Ataides
I had a similar problem with 0.98. I was using MS Dos 6.2. I fixed it by going to the newest version of Samba. This may or may not be your solution, here are my details:
DOS program was hosted on Linux Server. People accessing the application through a Windows computer (via a Samba share) had serious locking/not locking issues.
I think my problem was due to Samba 2.0 and going to the (then) new 2.2 fixed it.
Matthew Nuzum
[email protected]
www.bearfruit.org
Quoted 10 lines
-----Original Message-----
From: [email protected] [mailto:linux-msdos- [email protected]] On Behalf Of Anderson Pereira Ataides
Sent: Friday, June 14, 2002 11:21 AM
To: [email protected]
Subject: CLIPPER LOCKSHi,
I've got an application develop using Clipper 5.01 and I'm having
trouble
Quoted 3 lines
with locks.
When I lock a file (or record) in one workstation using Windows
another
Quoted 1 line
workstation can not open the same file, that's ok. But when I lock a
file
Quoted 2 lines
in
the same workstation, my Linux + Dosemu does not see that file is
locked
Quoted 5 lines
and
open it anyway. The same problem occurs between two Linux+Dosemu Workstations.This problem does not happen when two dosemu sessions are opened in
the
Quoted 2 lines
same
workstation. In this case, file locked in first session can not be
read by
Quoted 5 lines
the second session.
Because of this problem, my application is loosing data, because of concurrent updates to a locked file.
Quoted 7 lines
How can I solve this problem? Is it a dosemu bug?
I'm using dosemu 1.1.2.
Anderson Pereira Ataides
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos"
in
Quoted 2 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
I am already using samba 2.2.
Also I think problem is not with samba because as I told before, it still happens between two Linux workstations connected via NFS not samba.
Anderson Pereira Ataides
Quoted 73 lines · you
I had a similar problem with 0.98. I was using MS Dos 6.2. I fixed it by going to the newest version of Samba. This may or may not be your solution, here are my details:
DOS program was hosted on Linux Server. People accessing the application through a Windows computer (via a Samba share) had serious locking/not locking issues.
I think my problem was due to Samba 2.0 and going to the (then) new 2.2 fixed it.
Matthew Nuzum
[email protected]
www.bearfruit.orgQuoted 10 lines
-----Original Message-----
From: [email protected] [mailto:linux-msdos- [email protected]] On Behalf Of Anderson Pereira Ataides
Sent: Friday, June 14, 2002 11:21 AM
To: [email protected]
Subject: CLIPPER LOCKSHi,
I've got an application develop using Clipper 5.01 and I'm having
trouble
Quoted 3 lines
with locks.
When I lock a file (or record) in one workstation using Windows
another
Quoted 1 line
workstation can not open the same file, that's ok. But when I lock a
file
Quoted 2 lines
in
the same workstation, my Linux + Dosemu does not see that file islocked
Quoted 5 lines
and
open it anyway. The same problem occurs between two Linux+Dosemu Workstations.This problem does not happen when two dosemu sessions are opened in
the
Quoted 2 lines
same
workstation. In this case, file locked in first session can not beread by
Quoted 5 lines
the second session.
Because of this problem, my application is loosing data, because of concurrent updates to a locked file.
Quoted 7 lines
How can I solve this problem? Is it a dosemu bug?
I'm using dosemu 1.1.2.
Anderson Pereira Ataides
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos"in
Quoted 2 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Anderson Pereira Ataides writes:
Anderson> Hi, I've got an application develop using Clipper 5.01 and Anderson> I'm having trouble with locks.
Anderson> How can I solve this problem? Is it a dosemu bug?
Can you try this fix?
src/dosext/mfs/mfs.c +1 -0
@@ -3795,6 +3866,7 @@ ret =fcntl (fd,F_SETLK ,&larg);Debug0 ((dbg_fd,"lock fd=%x rc=%x type=%x whence=%x start=%lx, len=%lx\n" , fd, ret, larg.l_type, larg.l_whence, larg.l_start,larg.l_len)); +if (ret ==-1 )SETWORD (&(state->eax),ACCESS_DENIED );return ret !=-1 ? TRUE : FALSE; }break ;
Signature · 1 line
Sergey Suleymanov