[Samba] File locking

Jeremy Allison jra at samba.org
Wed Jul 2 20:45:41 GMT 2003


On Wed, Jun 18, 2003 at 11:08:30AM +0200, Simon wrote:
> Hi,
> 
> I have DOS program and I have to move it from Novell to Samba server.
> In Novell program locks file all but DENY READ : 0 so that other clients can read file
> and if one client is reading file, other can write to it.
> 
> I would like achive same affect on samba server, but on samba server program locks
>  file read and write so reading the file (while the other client is opening file for write) is not posible.
> 
> This is output of smbstatus of the file i would like to read while samba if performing this lock
> Locked files:
> Pid    DenyMode   Access      R/W        Oplock           Name
> --------------------------------------------------------------
> 3637   DENY_WRITE 0x3         RDWR       NONE             /home/public/somefile.dat   Tue Jun 17 12:34:59 2003

Is there a chance you can send me a copy of this program with
the instructions for reproducing it please ? I'd like to test
this against Samba 3.0.

Thanks,

	Jeremy.



More information about the samba mailing list