[Samba] Can Samba lock files until copy is complete?

Andrew Porter andy at defsdoor.org
Fri Aug 20 15:22:25 MDT 2010

On 20 Aug 2010, at 21:49, Whit Blauvelt <whit+samba at transpect.com> wrote:

> Hi,
> We've got a system where staff use Samba mounts on their Windows desktops to
> drop files into a Linux directory for further processing. Some of those
> files are large, and take time for the file copy across Samba to complete.

Look into inotifywait.  It can trigger actions on file close events. Your file will be closed when samba has finished writing to it. 

More information about the samba mailing list