[Samba] Moving file after transfer

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Nov 22 03:57:06 MST 2012


On Wed, Nov 21, 2012 at 08:07:39AM -0800, Ovidiu Barzan wrote:
> Hi,
> 
> I\m writing a VFS module that needs to move a file, after
> it is transferred, to a folder that is not shared.
> The shared folders that use this VFS module are used to
> sent files for processing by another application. The
> module signals the application that it has work to do and
> moves the file. 
> 
> So far I've been using the last close call, moving the
> file after doing SMB_VFS_NEXT_CLOSE().
> When moving the file an error is displayed on MAC. 
> 
> My question is:
> 
> Is there a better way then the close call to know when a
> client is done with the file, and it's safe to move it?

Wait a minute or two after the last close? I don't think
there is a really bullet-proof way over which the client
tells the server it's done with the file. The protocol has
no operation for that.

With best regards,

Volker Lendecke

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba mailing list