----- Original Message ----- From: "thelema" <[email protected]> To: <devl at freenetproject.org> Sent: Thursday, October 04, 2001 10:50 PM Subject: Re: [freenet-devl] FCPtools now with AutoSplit support
> (hopefully) exactly as you would expect: > SplitFile.Size=<hex file size> > SplitFile.BlockCount=<hex no. of data blocks> > [SplitFile.BlockSize=<hex size of each data block in bytes>] > [SplitFile.CheckBlockCount=<hex. no of check blocks>] > SplitFile.Block.<n>=<URI> > [SplitFile.Graph.<x>=a,b,c...] SplitFile.BlockSize is useless. The standard case, which BlockSize is given for, can be quite easily figured out without specifying it in the fieldset. The standard case is that every file is of the same size, a power of two, except the last one which is smaller. To figure out the Blocksize from just SplitFile.Size and SplitFile.BlockCount, use the following function (which i'm fairly sure is correct: blocksize = 2 ** ceiling(log(size / numblocks)/log(2)) On the other hand, i can see quite a bit of good coming out of: [SplitFile.Block.<n>.Size=<hex size of the block>] > For SplitFiles with a fixed block size, we recommend including this > information as it'll make resuming transfers <emphasis>much</emphasis> > easier. The last block in the splitfile doesn't have to be the same > size as the rest of the blocks, i.e. you don't need to pad the last > block to use this option. We could even then get rid of some of this text. :) We'd have to include the above algorithm though or a corrected version of it > Thelema > -- > E-mail: thelema314 at bigfoot.com If you love something, set it free. > GPG 1536g/B9C5D1F7 fpr:075A A3F7 F70B 1397 345D A67E 70AA 820B A806 F95D -Mathew _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
