Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure

2018-01-29 Thread Andrew Barchuk
> I don't really like the idea of having to reshuffle all the mirrors all > of a sudden. If keeping invariable directory structure is the goal (even though it should be possible to shuffle files among the directories without having to retransfer the whole tree with hard links) in addition to be ab

Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure

2018-01-28 Thread Andrew Barchuk
> In order to use that for distfiles mirrors, such that clients could know > where to fetch the files from, you'd need the mirror's http server to > redirect the request to the appropriate location (since the location > would not be predictable from the client side). That's not necessary: the cli

Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure

2018-01-28 Thread Andrew Barchuk
> To the contrary, that would not remain balanced, because your > boundaries are entirely dependent on exactly what is in the tree at > the moment you run your script. Now the package manager has to perform > directory listing, sort and find the file name that's closest, open > that directory, find

Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure

2018-01-28 Thread Andrew Barchuk
[my apologies for posting the message to a wrong thread before] Hi everyone, > three possible solutions for splitting distfiles were listed: > > a. using initial portion of filename, > > b. using initial portion of file hash, > > c. using initial portion of filename hash. > > The significant adva

Re: [gentoo-dev] [News item review] Portage rsync tree verification (v4)

2018-01-28 Thread Andrew Barchuk
Hi everyone, > three possible solutions for splitting distfiles were listed: > > a. using initial portion of filename, > > b. using initial portion of file hash, > > c. using initial portion of filename hash. > > The significant advantage of the filename option was simplicity. With > that sol