James Bason ([EMAIL PROTECTED]) wrote: > I have a question about the Datastore, and an idea for a feature that I don't > see, but would like to have if possible. First, my question: is there any way > to prevent loss of information from my datastore? I'm using build 535, and > I've got plenty of space for whatever Freenet wants to hand me, but I'd > prefer to not lose anything so as to not contribute to DNF's.
Set the size of your data store to the size of the file system.
> Secondly, along the same lines, an idea for the datastore. For those of us
> with more disk space than God, how about a feature where the datastore simply
> grows as needed, and a second option (assuming my first question's answer is
> a "no") to retain all data.
All disks are finite. Set your data store size.
> In other words, the datastore simply resizes
> itself whenever necessary until it runs out or gets close to running out of
> disk space?
You're assuming that Java can *determine* when disk space is running
low. I'd be willing to bet money that it can't do that. Remember,
everything Java does has to be platform-independent. You can't run
system("df ."); and then parse the output -- because that wouldn't
work on Windows, for instance.
You need to tell it how much disk space is available, up front, in the
config file.
--
Greg Wooledge | "Truth belongs to everybody."
[EMAIL PROTECTED] | - The Red Hot Chili Peppers
http://wooledge.org/~greg/ |
msg02158/pgp00000.pgp
Description: PGP signature
