begin  quote
On Wed, 22 Oct 2003 02:17:59 +0900
Jason Stubbs <[EMAIL PROTECTED]> wrote:

> > That should be cool, given all the MD5-sum checking. Would NFS not
> > do the right thing, you will get a sensible error and can try again.
> 
> If two machines start downloading the same file at the same time the
> following  situation happens:
> 
> 1) the first machine starts downloading
> 2) the second machine sees the file is already there but incomplete
> and starts  appending from.
> 3) the first machine also continues writing
> 4) the first machine finishes finds the md5 sum doesn't match, deletes
> the  files and exits
> 5) the second machine finishes downloading finds that the md5sum
> doesn't match  (or the file is gone) and also exits.
> 
> There's the problem you have to account for. Small but still a
> problem...
> 

Actually this can be worked around with a very small fix:

in make.conf, just set FETCHCOMMAND="" to something like this :

"curl -o /dev/shm/\${FILE} \${URI}; mv /dev/shm/\${FILE} \${DISTDIR}"


Or something similarly simple.  I've actually set up the files to be
downloaded with rsync over ssh between local machines, which can be done
quite similarly..  Very neat, and simple. :)


//Spider


-- 
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to