That looks about right. 1. 128k chunks are used for files under 1 meg. 2. The minimum number of data blocks is 6. This was to make the stat's work. If you have less than 6 blocks of data, the FCP fec stuff expects you to provide zero'd padding blocks. See the comments at the bottom of:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/freenet/Contrib/fecimpl/onion/SegmentationParams.java?rev=1.1&content-type=text/plain This file is responsible for calculating all segmentation parameters. And also notes in section II C of the original FCP FEC proposal. [The first section II. Oops.] http://hawk.freenetproject.org/pipermail/devl/2002-September/001053.html --gj On Thursday 24 October 2002 09:06, you wrote: > GJ? Anyone? Since I'm just inserting what I get back from fred, this > seems like weird output - by my calculations, it should split a 400kbyte > file into 2+1=3 parts. > > but perhaps I don't understand the algorythms involved.... it could just > be a python+windows interaction problem (I've had those before), however, > other people have emailed me claiming that it works for them, so I dno't > know what's up, given that there is also the issue that somehow I'm > managing to make 7 blocks of a 2 block file............ of course, block > lenghts come from fred too. > > - fish > > ---------- Forwarded message ---------- > > [irrelivant stuff about the node breaking with fishtools+fec on > 519. fixed as at 523]. > > BUT! While I can retrieve the HTML page, I can't retrieve the zip file > (from the same node which inserted it !). AND, if I understood Fishsite > output (see below) correctly, it splits the file into 7 parts and generates > 2 redundant parts. Since the original file was only 400kB, it's impossible > for those parts to be 256 kB, isn't it ? Anyway, here's the relevant output > for Fishsite: > > Spawning thread for /freenetsites/sites/test/marssi.zip(currently running: > 1) Inserting FEC version 1.2 using FCP > Encoded 2 redundant blocks > Inserting Part 1 of 9 threads: 2 at CHK@, try 1 > Inserting Part 2 of 9 threads: 3 at CHK@, try 1 > Inserting Part 3 of 9 threads: 4 at CHK@, try 1 > Inserting Part 4 of 9 threads: 4 at CHK@, try 1 > Inserting Part 5 of 9 threads: 5 at CHK@, try 1 > Inserting Part 6 of 9 threads: 5 at CHK@, try 1 > Inserting Part 7 of 9 threads: 6 at CHK@, try 1 > Inserting Part 8 of 9 threads: 6 at CHK@, try 1 > Inserting Part 9 of 9 threads: 7 at CHK@, try 1 > Making splitfile metadata > Inserting splitfile metadata for /freenetsites/sites/test/marssi.zip at > CHK@, try 1 > Inserting splitfile metadata for /freenetsites/sites/test/marssi.zip at > CHK@, try 2 > > > _______________________________________________ > devl mailing list > devl at freenetproject.org > http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl _______________________________________________ devl mailing list devl at freenetproject.org http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl
