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

akshay gupta <[email protected]>
Newsgroups gmane.network.lftp.user,gmane.network.lftp.devel
Message-ID <CAB_qc71h6GmYHPFasoL3dr9-Bi9rqApxdxbvCtkeSDRfdQL5LA@mail.gmail.com>
I am using fuse mounted hadoop distributed file system(HDFS). Can you
suggest what changes need to be done to make it work as this is a very
critical requirement for my project. Will deleting file and then renaming
temp file help? how to achieve that?

On Mon, Oct 27, 2014 at 7:38 PM, Alexander V. Lukyanov <[email protected]> wrote:

> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.