I believe all operating systems handle the file locking on files to prevent
concurrent writing. So, if more than one users/sessions try to write to the
same file, who ever opens the file first for writing would win and the rest
would fail. So not sure if we need to implement what you have mentioned.

Thanks.

Sai Pullabhotla
Phone: (402) 408-5753
Fax: (402) 408-6861
www.jMethods.com



On Mon, Apr 13, 2009 at 3:52 AM, David Latorre (JIRA) <[email protected]>wrote:

> Implement locking mechanism for files.
> --------------------------------------
>
>                 Key: FTPSERVER-289
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-289
>             Project: FtpServer
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 1.0.0
>            Reporter: David Latorre
>             Fix For: WISHLIST
>
>
>
> In order to solve FTPSERVER-288 , this is, to prevent the possibility of
> race conditions in STOU command  ( it is possible that non-unique filenames
> be generated with the current implementation) we would eventually need that
> there was some file locking mechanism which might be a mechanism to keep
> track of in-use files.
>
>
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

Reply via email to