Locking problem with 2.2.2

Dmitry Melekhov dm at belkam.com
Mon Dec 24 05:47:02 GMT 2001


Hello!

I have following problem-
we need to have locks on linux side and on samba side.

I wrote following perl script:

use Fcntl;
open FILE,"+>./1" or die "can' open";
$lock = pack ('s s l l s', &F_WRLCK, 0 , 0, 0, 0);
fcntl FILE,&F_SETLK,$lock or die "locking problem";
print "Good!";


Than I open this file ( 1) with MS Word from win98.
Run this script.
And this script waits until I close file in word.
But I say &F_SETLK not &F_SETLKW !
Script have to continue with error locking problem, imho.

But there is no such problem with
RH 6.2,2.2.19+ samba 2.0.10 and  RH 7.2,2.4.16 and 2.4.17+samba 2.2.1a


Problem exists on RH 6.2, 2.4.17, samba 2.2.2.

Sorry, I can't test 2.2.1 with RH 6.2 right now.






More information about the samba-technical mailing list