fcntl cooperation with server side processes

Herb Lewis hlewis at panasas.com
Tue Jul 20 22:58:29 GMT 2004

On your samba system run smbstatus -L to see what windows locks are on
the files. When I use explorer to copy a file I see something like the

# smbstatus -d0 -L
Locked files:
Pid    DenyMode   Access      R/W        Oplock           Name
9025   DENY_ALL   0x30196     WRONLY     EXCLUSIVE+BATCH  /bigfile   Tue Jul 
20 22:56:22 2004

And after the copy finishes I see

# smbstatus -d0 -L
No locked files

Jeremy Allison wrote:
> On Tue, Jul 20, 2004 at 05:35:14PM -0400, Chris Green wrote:
>>Good day,
>>This is a repost/recap of a question and asked on
>>samba at lists.samba.org.  I'm using Samba 2.2.8a [1] on Slackware 9.1
>>with 2000/XP clients.  I'm using the Linux 2.4.25 kernel.
>>I want to have a "drop box" that I have NT/2000 clients writing to
>>share and then have a unix process read and delete the file.
>>My problem is that samba isn't doing a lock that I can see from the
>>Linux side. My usage pattern is:
>>1) Copy cygwin.tar (250M) to share using Windows Explorer on W2K.
>>2) from the server's command line while the file is still copying, run

More information about the samba-technical mailing list