Re: Bug in lftp mirror when using xfer:use-temp-file option

"Alexander V. Lukyanov" <[email protected]> Mon, 27 Oct 2014 17:08:07 +0300
Newsgroups gmane.network.lftp.user,gmane.network.lftp.devel
Message-ID <[email protected]>
On Mon, Oct 27, 2014 at 05:53:19PM +0530, akshay gupta wrote:
> now its producing 0 byte files and i am also getting input/output error
> here are the debug logs:
> 
> copy: renaming `/mount/user/tom/test.txt_tmp_' to `test.txt'
> mirror: rename(/mount/user/tom/test.txt_tmp_, /mount/user/tom/test.txt):
> Input/output error

Which filesystem do you use? Maybe it is necessary to unlink target file
before renaming, although rename should do it automatically.

       If  newpath already exists it will be atomically replaced (subject to a
       few conditions; see ERRORS below), so that there is no point  at  which
       another process attempting to access newpath will find it missing.
       
And man page for rename(2) does not list EIO error.

-- 
   Alexander.
_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp