samba-users August 2010 archive
Main Archive Page > Month Archives  > samba-users archives
samba-users: Re: [Samba] Can Samba lock files until copy is comp

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

From: Andrew Porter <andy_at_nospam>
Date: Fri Aug 20 2010 - 21:22:25 GMT

On 20 Aug 2010, at 21:49, Whit Blauvelt <whit+samba@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.
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba