public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Samba and kernel oplocks
@ 2002-08-27 22:55 Stephen Lee
  2002-08-28 13:14 ` Anderson Pereira Ataides
  2002-08-29  4:39 ` Samba and kernel oplocks - Smbmount Stephen Lee
  0 siblings, 2 replies; 13+ messages in thread
From: Stephen Lee @ 2002-08-27 22:55 UTC (permalink / raw)
  To: dosemu

Hi,

I am running a Foxpro application under Dosemu 1.1.3.2 (xdosemu) with
the keyboard patches and things seem to be running smoothly. Problems
occur when some users access the same Foxpro db files via Samba 2.2.4.
Files locked under Dosemu/Foxpro are not locked when accessed by Samba.
Some of the samba config settings include:

kernel oplocks = yes
locking = Yes
oplocks = Yes
level2 oplocks = Yes
oplock contention limit = 2
posix locking = Yes
strict locking = No

This is a Redhat 7.2 systems running kernel 2.4.18. What else do I need
to configure to get Dosemu file locks recognized by Samba?

Thanks,
Stephen



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

* Re: Samba and kernel oplocks
  2002-08-27 22:55 Samba and kernel oplocks Stephen Lee
@ 2002-08-28 13:14 ` Anderson Pereira Ataides
  2002-08-28 22:30   ` Stephen Lee
  2002-08-29  6:21   ` Sergey Suleymanov
  2002-08-29  4:39 ` Samba and kernel oplocks - Smbmount Stephen Lee
  1 sibling, 2 replies; 13+ messages in thread
From: Anderson Pereira Ataides @ 2002-08-28 13:14 UTC (permalink / raw)
  To: dosemu; +Cc: Stephen Lee

I have a similar problem here but using CLIPPER not FoxPro. I received some 
messages to upgrade kernel and Samba. I made it and I've just tested 
(yesterday), but did not solve my problem. Windows workstations still can't 
see locks made by dosemu. And dosemu also can't see windows locks.

Just to confirm, I am using:
kernel 2.4.19
samba 2.2.5
dosemu 1.1.3

I thing problem is not only samba because nfs also have problem. I have two 
Linux workstations and when I lock record in one of them, the other one can't 
see this lock.

Like you I'm waiting for a solution to this problem.

bye,
Anderson Pereira Ataides



Em Terça 27 Agosto 2002 19:55, Stephen Lee escreveu:
> Hi,
>
> I am running a Foxpro application under Dosemu 1.1.3.2 (xdosemu) with
> the keyboard patches and things seem to be running smoothly. Problems
> occur when some users access the same Foxpro db files via Samba 2.2.4.
> Files locked under Dosemu/Foxpro are not locked when accessed by Samba.
> Some of the samba config settings include:
>
> kernel oplocks = yes
> locking = Yes
> oplocks = Yes
> level2 oplocks = Yes
> oplock contention limit = 2
> posix locking = Yes
> strict locking = No
>
> This is a Redhat 7.2 systems running kernel 2.4.18. What else do I need
> to configure to get Dosemu file locks recognized by Samba?
>
> Thanks,
> Stephen
>
>
> -
> 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
-
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

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

* Re: Samba and kernel oplocks
  2002-08-28 13:14 ` Anderson Pereira Ataides
@ 2002-08-28 22:30   ` Stephen Lee
  2002-08-29  6:21   ` Sergey Suleymanov
  1 sibling, 0 replies; 13+ messages in thread
From: Stephen Lee @ 2002-08-28 22:30 UTC (permalink / raw)
  To: Anderson Pereira Ataides; +Cc: dosemu

On Wed, 2002-08-28 at 06:14, Anderson Pereira Ataides wrote:
> I have a similar problem here but using CLIPPER not FoxPro. I received some 
> messages to upgrade kernel and Samba. I made it and I've just tested 
> (yesterday), but did not solve my problem. Windows workstations still can't 
> see locks made by dosemu. And dosemu also can't see windows locks.
> 
> Just to confirm, I am using:
> kernel 2.4.19
> samba 2.2.5
> dosemu 1.1.3
> 
> I thing problem is not only samba because nfs also have problem. I have two 
> Linux workstations and when I lock record in one of them, the other one can't 
> see this lock.
> 
> Like you I'm waiting for a solution to this problem.
> 
> bye,
> Anderson Pereira Ataides

The patch sent by Bart did not work in my case either. I wonder if this
problem was introduced in the 1.1.3 branch or also exists in the 1.0.2
stable series as well?

Stephen



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

* Re: Samba and kernel oplocks - Smbmount
  2002-08-27 22:55 Samba and kernel oplocks Stephen Lee
  2002-08-28 13:14 ` Anderson Pereira Ataides
@ 2002-08-29  4:39 ` Stephen Lee
  2002-08-29 14:39   ` Oscar A. Valdez
  1 sibling, 1 reply; 13+ messages in thread
From: Stephen Lee @ 2002-08-29  4:39 UTC (permalink / raw)
  To: dosemu

On Tue, 2002-08-27 at 15:55, Stephen Lee wrote:
> Hi,
> 
> I am running a Foxpro application under Dosemu 1.1.3.2 (xdosemu) with
> the keyboard patches and things seem to be running smoothly. Problems
> occur when some users access the same Foxpro db files via Samba 2.2.4.
> Files locked under Dosemu/Foxpro are not locked when accessed by Samba.
> Some of the samba config settings include:
> 
> kernel oplocks = yes
> locking = Yes
> oplocks = Yes
> level2 oplocks = Yes
> oplock contention limit = 2
> posix locking = Yes
> strict locking = No
> 
> This is a Redhat 7.2 systems running kernel 2.4.18. What else do I need
> to configure to get Dosemu file locks recognized by Samba?

Just for kicks, I tried to access the Foxpro db files via an smb share
using smbmount. Instead of pointing $_hdimage to the Drdos/Foxpro
directory directly, I pointed it to a directory mounted to the smb share
containing the Drdos/Foxpro files. The idea was to make Dosemu use the
Samba file locking system. Well...Dosemu runs and Foxpro starts but the
whole process is REALLY slow. So slow that I didn't have the patience to
test whether the file locking problem was fixed. It's not eating up cpu
cycles either (according to top).

Has anyone tried to access smb shares from Dosemu and if yes how did you
do it?

Thanks,
Stephen



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

* Re: Samba and kernel oplocks
  2002-08-28 13:14 ` Anderson Pereira Ataides
  2002-08-28 22:30   ` Stephen Lee
@ 2002-08-29  6:21   ` Sergey Suleymanov
  2002-08-29  6:56     ` Stephen Lee
                       ` (2 more replies)
  1 sibling, 3 replies; 13+ messages in thread
From: Sergey Suleymanov @ 2002-08-29  6:21 UTC (permalink / raw)
  To: Linux-MSDOS Mailing list

>>>>> Anderson Pereira Ataides writes:

 Anderson> I thing problem is not only samba because nfs also have
 Anderson> problem. I have two Linux workstations and when I lock
 Anderson> record in one of them, the other one can't see this lock.

 Anderson> Like you I'm waiting for a solution to this problem.

        Well, I'm just try locks with samba, and it seems work.
        oplocks = no in smb.conf and this hack to mfs.c

--- src/dosext/mfs/mfs.c.orig	Thu Aug 29 10:09:33 2002
+++ src/dosext/mfs/mfs.c	Thu Aug 29 10:08:31 2002
@@ -3823,11 +3823,16 @@
 			the top two bits are set. Shift the top ones by two bits. This
 			still allows OLE2 apps to operate, but should stop lockd from
 			dieing */
+#if 0
 		if ((larg.l_start & mask) != 0)
 			larg.l_start = (larg.l_start & ~mask) | ((larg.l_start & mask) >> 2);
+#else
+		larg.l_start &= 0x7fffffff;
+#endif
 		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;

        I don't understand that bit magic, maybe this won't work with
        nfs or something else.

-- 
  Sergey Suleymanov


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

* Re: Samba and kernel oplocks
  2002-08-29  6:21   ` Sergey Suleymanov
@ 2002-08-29  6:56     ` Stephen Lee
  2002-08-29  7:18       ` Sergey Suleymanov
  2002-08-29 17:21     ` Stephen Lee
  2002-09-02 23:08     ` Samba and kernel oplocks - Solved Stephen Lee
  2 siblings, 1 reply; 13+ messages in thread
From: Stephen Lee @ 2002-08-29  6:56 UTC (permalink / raw)
  To: Sergey Suleymanov; +Cc: Linux-MSDOS Mailing list

On Wed, 2002-08-28 at 23:21, Sergey Suleymanov wrote:
>         Well, I'm just try locks with samba, and it seems work.
>         oplocks = no in smb.conf and this hack to mfs.c
> 
> --- src/dosext/mfs/mfs.c.orig	Thu Aug 29 10:09:33 2002
> +++ src/dosext/mfs/mfs.c	Thu Aug 29 10:08:31 2002
> @@ -3823,11 +3823,16 @@
>  			the top two bits are set. Shift the top ones by two bits. This
>  			still allows OLE2 apps to operate, but should stop lockd from
>  			dieing */
> +#if 0
>  		if ((larg.l_start & mask) != 0)
>  			larg.l_start = (larg.l_start & ~mask) | ((larg.l_start & mask) >> 2);
> +#else
> +		larg.l_start &= 0x7fffffff;
> +#endif
>  		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;
> 

Which version of Dosemu is the above patch applied against? 1.1.3 or
1.1.3.2. I am using 1.1.3.2 with the keybard patches.

Thanks,
Stephen



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

* Re: Samba and kernel oplocks
  2002-08-29  6:56     ` Stephen Lee
@ 2002-08-29  7:18       ` Sergey Suleymanov
  0 siblings, 0 replies; 13+ messages in thread
From: Sergey Suleymanov @ 2002-08-29  7:18 UTC (permalink / raw)
  To: Linux-MSDOS Mailing list

>>>>> Stephen Lee writes:

 Stephen> Which version of Dosemu is the above patch applied against?
 Stephen> 1.1.3 or 1.1.3.2. I am using 1.1.3.2 with the keybard
 Stephen> patches.

        1.1.3.2.

-- 
  Sergey Suleymanov


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

* Re: Samba and kernel oplocks - Smbmount
  2002-08-29  4:39 ` Samba and kernel oplocks - Smbmount Stephen Lee
@ 2002-08-29 14:39   ` Oscar A. Valdez
  0 siblings, 0 replies; 13+ messages in thread
From: Oscar A. Valdez @ 2002-08-29 14:39 UTC (permalink / raw)
  To: Stephen Lee; +Cc: dosemu

I'm accessing Samba shares with Dosemu 1.0.2 and 1.0.2.1. File locking
works flawlessly and with simultaneous access by Window$ clients.

I mount the Samba share with

mount -t smbfs //SERVER/SHARE /mnt/MOUNTPOINT -o credentials=CREDENTIALS_FILE,workgroup=WORKGROUP,rw,gid=GID,fmask=770

and then, within Dosemu

lredir F: linux\fs/mnt/MOUNTPOINT

(Of course, all the stuff in capitals needs to be substituted correspondingly).

Works fine.

Oscar

El mié, 28-08-2002 a las 22:39, Stephen Lee escribió:
> On Tue, 2002-08-27 at 15:55, Stephen Lee wrote:
> > Hi,
> > 
> > I am running a Foxpro application under Dosemu 1.1.3.2 (xdosemu) with
> > the keyboard patches and things seem to be running smoothly. Problems
> > occur when some users access the same Foxpro db files via Samba 2.2.4.
> > Files locked under Dosemu/Foxpro are not locked when accessed by Samba.
> > Some of the samba config settings include:
> > 
> > kernel oplocks = yes
> > locking = Yes
> > oplocks = Yes
> > level2 oplocks = Yes
> > oplock contention limit = 2
> > posix locking = Yes
> > strict locking = No
> > 
> > This is a Redhat 7.2 systems running kernel 2.4.18. What else do I need
> > to configure to get Dosemu file locks recognized by Samba?
> 
> Just for kicks, I tried to access the Foxpro db files via an smb share
> using smbmount. Instead of pointing $_hdimage to the Drdos/Foxpro
> directory directly, I pointed it to a directory mounted to the smb share
> containing the Drdos/Foxpro files. The idea was to make Dosemu use the
> Samba file locking system. Well...Dosemu runs and Foxpro starts but the
> whole process is REALLY slow. So slow that I didn't have the patience to
> test whether the file locking problem was fixed. It's not eating up cpu
> cycles either (according to top).
> 
> Has anyone tried to access smb shares from Dosemu and if yes how did you
> do it?
> 
> Thanks,
> Stephen
> 
> 
> -
> 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


-
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

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

* Re: Samba and kernel oplocks
  2002-08-29  6:21   ` Sergey Suleymanov
  2002-08-29  6:56     ` Stephen Lee
@ 2002-08-29 17:21     ` Stephen Lee
  2002-08-29 17:28       ` Bart Oldeman
  2002-09-02 23:08     ` Samba and kernel oplocks - Solved Stephen Lee
  2 siblings, 1 reply; 13+ messages in thread
From: Stephen Lee @ 2002-08-29 17:21 UTC (permalink / raw)
  To: Sergey Suleymanov; +Cc: Linux-MSDOS Mailing list

On Wed, 2002-08-28 at 23:21, Sergey Suleymanov wrote:
> >>>>> Anderson Pereira Ataides writes:
> 
>  Anderson> I thing problem is not only samba because nfs also have
>  Anderson> problem. I have two Linux workstations and when I lock
>  Anderson> record in one of them, the other one can't see this lock.
> 
>  Anderson> Like you I'm waiting for a solution to this problem.
> 
>         Well, I'm just try locks with samba, and it seems work.
>         oplocks = no in smb.conf and this hack to mfs.c
> 
> --- src/dosext/mfs/mfs.c.orig	Thu Aug 29 10:09:33 2002
> +++ src/dosext/mfs/mfs.c	Thu Aug 29 10:08:31 2002
> @@ -3823,11 +3823,16 @@
>  			the top two bits are set. Shift the top ones by two bits. This
>  			still allows OLE2 apps to operate, but should stop lockd from
>  			dieing */
> +#if 0
>  		if ((larg.l_start & mask) != 0)
>  			larg.l_start = (larg.l_start & ~mask) | ((larg.l_start & mask) >> 2);
> +#else
> +		larg.l_start &= 0x7fffffff;
> +#endif
>  		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;
> 
I copied your diff into a file and ran "patch -p0 < diff_file" and got:

patching file src/dosext/mfs/mfs.c
Hunk #1 FAILED at 3823.
1 out of 1 hunk FAILED -- saving rejects to file
src/dosext/mfs/mfs.c.rej

I don't know much about patching but it appears that the prepatch status
of my 1.1.3.2 mfs.c is different compared to yours.  The line containing
"the top two bits are set. Shift the top ones by two bits." in my
version of mfs.c resides at line 3789.

Thanks for your help.
Stephen



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

* Re: Samba and kernel oplocks
  2002-08-29 17:21     ` Stephen Lee
@ 2002-08-29 17:28       ` Bart Oldeman
  2002-08-29 17:57         ` Stephen Lee
  0 siblings, 1 reply; 13+ messages in thread
From: Bart Oldeman @ 2002-08-29 17:28 UTC (permalink / raw)
  To: Stephen Lee; +Cc: Sergey Suleymanov, Linux-MSDOS Mailing list

On 29 Aug 2002, Stephen Lee wrote:

> I don't know much about patching but it appears that the prepatch status
> of my 1.1.3.2 mfs.c is different compared to yours.  The line containing
> "the top two bits are set. Shift the top ones by two bits." in my
> version of mfs.c resides at line 3789.

Take look at the reject file. Patch is quite smart and will usually pass
if only the line numbers fail. It could just be whitespace (spaces,
tabs); that can happen if you copy paste using the mouse. In that case
you could also try the -l option of patch.

Bart


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

* Re: Samba and kernel oplocks
  2002-08-29 17:28       ` Bart Oldeman
@ 2002-08-29 17:57         ` Stephen Lee
  0 siblings, 0 replies; 13+ messages in thread
From: Stephen Lee @ 2002-08-29 17:57 UTC (permalink / raw)
  To: Bart Oldeman; +Cc: Sergey Suleymanov, Linux-MSDOS Mailing list

On Thu, 2002-08-29 at 10:28, Bart Oldeman wrote:
> On 29 Aug 2002, Stephen Lee wrote:
> 
> > I don't know much about patching but it appears that the prepatch status
> > of my 1.1.3.2 mfs.c is different compared to yours.  The line containing
> > "the top two bits are set. Shift the top ones by two bits." in my
> > version of mfs.c resides at line 3789.
> 
> Take look at the reject file. Patch is quite smart and will usually pass
> if only the line numbers fail. It could just be whitespace (spaces,
> tabs); that can happen if you copy paste using the mouse. In that case
> you could also try the -l option of patch.
> 

The same failed result with the -l option. I'm pretty sure the line
numbers do not match. Since the patch only inserts 5 lines, I simply
inserted them myself.

Stephen



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

* Re: Samba and kernel oplocks - Solved.
  2002-08-29  6:21   ` Sergey Suleymanov
  2002-08-29  6:56     ` Stephen Lee
  2002-08-29 17:21     ` Stephen Lee
@ 2002-09-02 23:08     ` Stephen Lee
  2002-09-11  8:58       ` Samba and kernel oplocks - Solved???? Uwe Feldtmann
  2 siblings, 1 reply; 13+ messages in thread
From: Stephen Lee @ 2002-09-02 23:08 UTC (permalink / raw)
  To: Sergey Suleymanov; +Cc: Linux-MSDOS Mailing list

On Wed, 2002-08-28 at 23:21, Sergey Suleymanov wrote:
> >>>>> Anderson Pereira Ataides writes:
> 
>  Anderson> I thing problem is not only samba because nfs also have
>  Anderson> problem. I have two Linux workstations and when I lock
>  Anderson> record in one of them, the other one can't see this lock.
> 
>  Anderson> Like you I'm waiting for a solution to this problem.
> 
>         Well, I'm just try locks with samba, and it seems work.
>         oplocks = no in smb.conf and this hack to mfs.c
> 
> --- src/dosext/mfs/mfs.c.orig	Thu Aug 29 10:09:33 2002
> +++ src/dosext/mfs/mfs.c	Thu Aug 29 10:08:31 2002
> @@ -3823,11 +3823,16 @@
>  			the top two bits are set. Shift the top ones by two bits. This
>  			still allows OLE2 apps to operate, but should stop lockd from
>  			dieing */
> +#if 0
>  		if ((larg.l_start & mask) != 0)
>  			larg.l_start = (larg.l_start & ~mask) | ((larg.l_start & mask) >> 2);
> +#else
> +		larg.l_start &= 0x7fffffff;
> +#endif
>  		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;
> 
>         I don't understand that bit magic, maybe this won't work with
>         nfs or something else.
> 

I'm happy to say that the above patch allows Foxpro/Dosemu file locks to
be recognized by Samba 2.2.4. This means I can run the Foxpro
application via Dosemu and under MSDOS/Win98/Samba simultaneously! The
only issue I had with the above patch is that the line numbers did not
match my version of Dosemu 1.1.3.2 with keyboard patches. I had to
insert the lines manually.

Now onto stress testing to ensure the changes do not affect Dosemu
stability.

Thanks Sergey!

Stephen



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

* Re: Samba and kernel oplocks - Solved????
  2002-09-02 23:08     ` Samba and kernel oplocks - Solved Stephen Lee
@ 2002-09-11  8:58       ` Uwe Feldtmann
  0 siblings, 0 replies; 13+ messages in thread
From: Uwe Feldtmann @ 2002-09-11  8:58 UTC (permalink / raw)
  To: Stephen Lee; +Cc: linux-msdos

Hi,
I've been following this thread in the hope that it would help with a
similar problem that I've been experiencing. Alas it doesn't help.

The scenario:
I am running a dos app from a shared samba directory on a linux server
with both windows and dosemu clients.

The problem:
When the dosemu clients start the app first, the windows clients get the
following message:-
  Cannot access the file "N:\DATA\EQUITY\EQUITY.EXE".
  Make sure the file is a valid program and that it is not in use by
another program.

When the windows clients start the app first, the dosemu clients don't
have a problem accessing the program or the data.

I've applied the patch to dosemu from the previous posts on this thread
with to dosemu 1.1.3 and am using the current version of samba.
EQUITY.EXE is a clarion 2.1 based dos app that has been in use for years
on all networks tested.

Any ideas?

Yours,
Uwe.


On Tue, 2002-09-03 at 09:08, Stephen Lee wrote:
> On Wed, 2002-08-28 at 23:21, Sergey Suleymanov wrote:
> > >>>>> Anderson Pereira Ataides writes:
> > 
> >  Anderson> I thing problem is not only samba because nfs also have
> >  Anderson> problem. I have two Linux workstations and when I lock
> >  Anderson> record in one of them, the other one can't see this lock.
> > 
> >  Anderson> Like you I'm waiting for a solution to this problem.
> > 
> >         Well, I'm just try locks with samba, and it seems work.
> >         oplocks = no in smb.conf and this hack to mfs.c
> > 
> > --- src/dosext/mfs/mfs.c.orig	Thu Aug 29 10:09:33 2002
> > +++ src/dosext/mfs/mfs.c	Thu Aug 29 10:08:31 2002
> > @@ -3823,11 +3823,16 @@
> >  			the top two bits are set. Shift the top ones by two bits. This
> >  			still allows OLE2 apps to operate, but should stop lockd from
> >  			dieing */
> > +#if 0
> >  		if ((larg.l_start & mask) != 0)
> >  			larg.l_start = (larg.l_start & ~mask) | ((larg.l_start & mask) >> 2);
> > +#else
> > +		larg.l_start &= 0x7fffffff;
> > +#endif
> >  		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;
> > 
> >         I don't understand that bit magic, maybe this won't work with
> >         nfs or something else.
> > 
> 
> I'm happy to say that the above patch allows Foxpro/Dosemu file locks to
> be recognized by Samba 2.2.4. This means I can run the Foxpro
> application via Dosemu and under MSDOS/Win98/Samba simultaneously! The
> only issue I had with the above patch is that the line numbers did not
> match my version of Dosemu 1.1.3.2 with keyboard patches. I had to
> insert the lines manually.
> 
> Now onto stress testing to ensure the changes do not affect Dosemu
> stability.
> 
> Thanks Sergey!
> 
> Stephen
> 
> 
> -
> 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
> 



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

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

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-27 22:55 Samba and kernel oplocks Stephen Lee
2002-08-28 13:14 ` Anderson Pereira Ataides
2002-08-28 22:30   ` Stephen Lee
2002-08-29  6:21   ` Sergey Suleymanov
2002-08-29  6:56     ` Stephen Lee
2002-08-29  7:18       ` Sergey Suleymanov
2002-08-29 17:21     ` Stephen Lee
2002-08-29 17:28       ` Bart Oldeman
2002-08-29 17:57         ` Stephen Lee
2002-09-02 23:08     ` Samba and kernel oplocks - Solved Stephen Lee
2002-09-11  8:58       ` Samba and kernel oplocks - Solved???? Uwe Feldtmann
2002-08-29  4:39 ` Samba and kernel oplocks - Smbmount Stephen Lee
2002-08-29 14:39   ` Oscar A. Valdez

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