[Samba] File locking problem involving Samba, Clearcase, and Cygwin

Jeremy Allison jra at samba.org
Wed Feb 11 02:56:26 GMT 2009

On Tue, Feb 10, 2009 at 02:24:10PM -0800, Kathy wrote:
> I wanted to post again with the results of using Samba 3.2.8.  Looks
> like this did not solve our "locking" problem.  We are still getting
> permission denied errors when we try to do a "mv" of a log file inside
> a Clearcase view via a Samba share to a different location.  Again,
> this is inside a Cygwin window on a WindowsXP virtual machine.  It is
> referencing a Clearcase dynamic view via Samba on
> //server/<view_name>.   It does not matter if you try to move it to
> another Clearcase view (i.e. //server/views/<ccase_view_name/<dir>) or
> if you try to move it to a Windows share or even to the local drive.
> Below is a snippet of what the Samba log shows when these two files
> can't be moved.  ProcessExplorer program on the Windows XP machine did
> not show file handle holding on to either of these files.  Smbstatus
> on the RHEL 5.2 Clearcase/Samba server reported NONE for oplocks,
> WRONLY for R/W, and DENY_NONE on DenyMode.
> We are now running new tests where the scripts are writing the logs to
> a Samba share, but not to a share that is also a Clearcase view.  And
> if we still have issues we are going to then have the logs write to a
> local drive, leaving Samba completely out of it for the part of
> writing logs.  (They will still be inside the CC view via Samba when
> firing off their scripts.)

Ok, thanks for testing with the latest code. As Volker
mentioned, what we need now if for you to test this
against a Windows 2003 or 2008 server and see if this
reproduces the problem. If not, a wireshark network
trace of it working correctly against Windows 200[3|8]
and it not working correctly against Samba 3.2.8 is

Thanks a lot,


More information about the samba mailing list