On Thu, Oct 03, 2002 at 11:17:27PM +0200, Robert Bihlmeyer wrote: > Ian Clarke <[EMAIL PROTECTED]> writes: > > > Shouldn't the datastore be used for this kind of thing? > > > > Just how are these settings intended to be used? > > For FEC one basically needs transactions, i.e. something like > > 1. request some blocks > 2. lock situation > 3. count available blocks; if not enough goto 1, or give up > 4. assemble file from available blocks > 5. unlock situation > > AFAIK the problem is that Freenet does not provide locking so a block > that is available in step 3, may no longer be there in step 4. So the > fproxy FEC code kludges that by moving available blocks to a medium > which won't remove them under its arse. Um, no. The only things that get deleted due to running out of space are those with a dirID of 0x1, i.e. keys stored in the datastore. 0x101 and 0x102 are used internally to represent the routing table, and they never get deleted unless explicitly told to by higher level code (this is handled automatically, but the result is the minimum store size). > > The answer seems to be some kind of functionality where you can put > something in the local store (or order a requested key to get cached > there), and be sure that it won't get deleted until time X. This could > also be generalised to provide persistence ... Just set the dirID to something other than 1, and it'll persist until you delete it. > > Why fproxy needs a temp dir apart from FEC, I don't know. > > > On Wed, Oct 02, 2002 at 04:20:34PM -0700, Reuben Balik wrote: > > > What would be the recommended entries into the > > > freenet.ini to fix the following errors: > > > > > > WARNING: FECTempDir not set in freenet.conf/ini! > > > Oct 2, 2002 5:31:55 PM (freenet.node.Main, main): > > > WARNING: FECTempDir not set in freenet.conf/ini! > > > Oct 2, 2002 6:15:44 PM > > > (freenet.client.http.FproxyServlet, QThread-10): > > > WARNING: fproxy tempDir not set. > > > Oct 2, 2002 6:15:44 PM > > > (freenet.client.http.FproxyServlet, QThread-10): > > > Set mainport.params.servlet.1.params.tempDir in > > > freenet.conf/ini. > > This error message answers part of your question, Reuben. > > -- > Robbe
-- Matthew Toseland [EMAIL PROTECTED] [EMAIL PROTECTED] Freenet/Coldstore open source hacker. Employed full time by Freenet Project Inc. from 11/9/02 to 11/11/02.
msg04116/pgp00000.pgp
Description: PGP signature
