Hello,

I have a little bug with lftp 2.6.8, i think it's related to its cache
listing, and it has been around since the early 2.5 releases, maybe even
sooner.

Imagine a directory on a ftp that is being uploaded. While it's
uploading (let's say 10 files are uploaded already, number 11 is
uploading) do:
mirror -c thedir
lftp downloads the first 10 files, by that time the 11th is complete,
and thus completely downloaded too.

redo:
mirror -c thedir    (which is now completed with, let us say 15 files)
lftp deletes file 11 of the harddisk, redownload it again, and complete
the dir to the 15th file.


That file deletion is rather annoying.


You can do this on your local lan:
mkdir localtmp
cd localtmp
dd if=/dev/zero of=f1.tmp count=50 bs=1000000
for i in `seq 2 9`; do cp f1.tmp f$i.tmp ; done

A)
ftp [EMAIL PROTECTED]
mkdir t
cd t

in another window:
B)
lftp [EMAIL PROTECTED]
cd t
mput f1.tmp f2.tmp f3.tmp

back in A)
wait f1 completes and do a
mirror -c t

then wait the full transfer completes and do a mirror -c t  again
f2 will be redownloaded a second time.

This cannot be done using NFS for upload.



-- 
Jean-Yves Simon <[EMAIL PROTECTED]>

Reply via email to