Opened 6 years ago

Closed 5 years ago

#1132 closed defect (fixed)

New per-torrent config system for i2psnark

Reported by: zzz Owned by: zzz
Priority: minor Milestone: 0.9.15
Component: apps/i2psnark Version: 0.9.8.1
Keywords: Cc:
Parent Tickets: #372, #571, #766, #771, #1026, #1028, #1034 Sensitive: no

Description

Storing per-torrent state in i2psnark.config is unwieldy and inefficient. Right now we store file priority and piece completion status in "zmeta" configs.

There's lots of other things we want to store (see parent tickets) but we need a better config system.

The original plan was to use the new preferences subsystem (see #753) but that effort has stalled.

We have no hierarchical storage for our basic config methods (see DataHelper?).

Either develop something more elaborate and add it as a utility, or find some library, or finish the preferences work.

One possibility - a simple config file per-torrent. That is, don't add anything fancy, just make a bunch of files to provide the hierarchy. Probably do a two-level setup like netDb/ and peerProfiles/ .

Subtickets

Change History (10)

comment:1 Changed 6 years ago by zzz

Status: newaccepted

started

comment:2 Changed 6 years ago by zzz

branch i2p.i2p.zzz.snarkconfig

comment:3 Changed 6 years ago by zzz

Add a subticket #1148.

comment:4 Changed 6 years ago by zzz

Add a subticket #1172.

comment:5 Changed 6 years ago by zzz

Add a subticket #1298.

comment:6 Changed 5 years ago by zzz

Parent Tickets: 372, 571, 766, 771, 964, 1026, 1028, 1034372, 571, 766, 771, 1026, 1028, 1034

comment:7 Changed 5 years ago by zzz

Remove a subticket #1148.

comment:8 Changed 5 years ago by zzz

Remove a subticket #1172.

comment:9 Changed 5 years ago by zzz

Remove a subticket #1298.

comment:10 Changed 5 years ago by zzz

Milestone: 0.9.120.9.15
Resolution: fixed
Status: acceptedclosed

propped in 0.9.14.1-3

Note: See TracTickets for help on using tickets.