Matthew Toseland <mtoseland at blueyonder.co.uk> writes:

The native datastore works fine so far for me. Nice work!

Do I read the code right that it's currently only using the first
location in storeFiles? Is there intent to change that? Personally, I
don't care, but if we're moving to "one store, one location", it
should be documented ...

> e) I may impose incompatible format changes in the near future, so don't
> expect to keep your datastore forever.

Is there an easy way to move data from one (old) store to another
(new)? I tried running two nodes, the old one as normal, and the new
one (i.e. empty routing table) transient with only the old node in its
seednodes. Then I requested tons of stuff through the new node. I
would have wanted it to get its data from the old node's store. 
Unfortunately, fred is too smart for me, learns of other nodes very
fast, and thus routes request through the old node relatively rarely.

I'm going to try firewalling the new node.

Is there a better way?

> HOWTO:
> Stop node.
> Remove the monolithic datastore file store_<portnumber> or whatever
> Set storeType=native in your freenet.conf
> Start node.

Hmm, better diagnostics if your storeType does not match what you have
would be nice. Something like this, perhaps?

Index: NativeFSDirectory.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/fs/dir/NativeFSDirectory.java,v
retrieving revision 1.39
diff -u -r1.39 NativeFSDirectory.java
--- NativeFSDirectory.java      27 Sep 2002 20:15:04 -0000      1.39
+++ NativeFSDirectory.java      29 Sep 2002 10:24:39 -0000
@@ -284,6 +284,8 @@
         this.root = root;
         this.size = size;
        this.blockSize = blockSize;
+       if (root.isFile())
+           throw new Error("store is not a directory; do you have an old-style 
store lying around?");
        root.mkdir();
        spaceUsed = 0;
        buffers = new Hashtable();


-- 
Robbe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.ng
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20020929/31ebe3b0/attachment.pgp>

Reply via email to