<br>I'm having a small samba (3.0) issue with file locking.<br><br>The objective is to have a directory that has files written to it by a unix process that is shared out via an SMB share. The share is polled periodically by a process on a windows machine and if a particular file/s exists it is processed and removed... not the best design but not my doing.<br>
<br>The problem I need to overcome is that the file is being processed before it has been completely written out to the file system and therefore attempting to be processed when incomplete.<br><br>I have tried disabling oplocks and also veto oplocks for the particular file suffix but I am still able to move/delete the file while the file is still being written too.<br>
<br>The configuration I was testing with is pretty basic;<br><br>[test]<br> path = /home/test<br> writable = yes<br> comment = Test<br> browesable = yes<br> guest ok = yes<br> locking = yes<br> strict locking = yes<br>
veto oplock files = /*.txt/<br><br><br>Any suggestions ? from the Samba docs the veto oplocks should do what I want but I'm not seeing it work as expected.<br><br>