Opened 7 years ago

Last modified 4 years ago

#624 accepted defect

Move disk-intensive files to a user selectable dir -- Seedless databases.

Reported by: zzz Owned by: sponge
Priority: minor Milestone:
Component: apps/plugins Version:
Keywords: Seedless Neodatis Cc:
Parent Tickets:


Seedless (or neodatis?) creates the files Seedlessdb, Seedlessdb.lg, and SeedlessVersion? in ~/.i2p. They should be moved to the seedless or neodatis plugin directory so they are removed when the user deletes the plugin. Plugins should not store data in ~/.i2p. Alternative is to add an uninstaller.

From http://i2p-projekt.i2p/plugin_spec :

Plugins may write to $CONFIG but keeping files in $PLUGIN only is recommended. All files in $PLUGIN will be deleted at uninstall. Files elsewhere will not be deleted at uninstall unless the plugin does it explicitly with a client in clients.config run with uninstallargs. If the user may want to save data after uninstallation, the uninstallargs hook could ask.

Subtickets (add)

Change History (2)

comment:1 Changed 6 years ago by sponge

  • Status changed from new to accepted
  • Summary changed from Move seedless files to plugin dir to Move disk-intensive files to a user selectable dir -- Seedless databases.

I think we need something extra, defined places for storing things like on Android on a per-plugin/per router client basis. Perhaps something like $DATA where a user can point it to a common root area for data that a user wants to share between plugins and applications, and each has a separate directory from there. This becomes increasingly important when we start dealing with embedded, such as Android and the Raspberry PI. Flash wear is a huge concern, and a user should be able to specify where more lively files go. Router DB is one case I can think of that could cause a lot of wear on flash.

It would be nice to be able to have the user easily re-target things like $TMP as well. I realize that this sort of thing is not an easy task at this point, and we need a better solution for lots of areas concerning storage of different kinds of files. For example, Snark has this right, nothing else really does, and there are many areas we can improve on. I also would love to be able to easily move logging, including eepsite logs, router logs, etc to different places. Right now, any of these things requires hand modification to config files, which is far from ideal.

Also, Neodatis, not Seedless, is what actually creates the database files, however Seedless tells Neodatis what file. I have to see if I can tell it where as well.

comment:2 Changed 4 years ago by str4d

  • Keywords Seedless Neodatis added
Note: See TracTickets for help on using tickets.