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-devel mailing list lftp-devel@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp-devel