-
Notifications
You must be signed in to change notification settings - Fork 20
Story: Register a filesystem Directory in IPFS without Duplicating Content #92
Comments
Please note that I do get notifications to every IPFS related issue. This directly involves me, yet I only discovered it by chance. Is there I reason I was not notified or mentioned? |
@kevina this sprint arose very quickly based on sudden interest outside our org. I'm setting up the issues & stories so we can discuss them in the Sprint Planning call. That planning call was scheduled for today but got moved to Tuesday because @whyrusleeping is traveling. |
To add a directory with the what is in ipfs/kubo#3368 simply add a directory with the '--no-copy' option. This will pin the directory recursively like a normal add will. If the contents of the directory ever change than the entire directory can be readded. If the directory changes frequently than this will not work well. The filestore was never designed to "track" a directory. I anticipated the situation where a directory changes frequently and wrote a script to add a directory in a way only changed files will need to be readded. The idea was that this script can be run at regular intervals in order to track changes. Unfortunately, doing it this way means that every file will need to be pinned individually, that can be slow and lead to a very large pinset. For this reason (and others) in the full filestore implementations ipfs/kubo#2634 all filestore objects are considered implicitly pinned. That means that the garbage collector will not remove anything in the filestore. A separate set of maintenance commands is provided to maintain the filestore. |
Script link: https://github.com/ipfs-filestore/go-ipfs/tree/kevina/filestore/filestore/examples Related issues: #93 |
@kevina context: ipfs/team-mgmt#309 (comment) |
Note that the filestore implementation satisfies the user story, but does not use the described internals. We won't be generating an ipfs-pack for each filestore added directory. |
|
Removed this part of the Acceptance Scenario. This implementation doesn't use ipfs-pack. The ipfs-pack should be covered in the issues around that functionality.
|
depends on #98: Use Manifest Files to Track Directory Structure & Contents
Story
Given:
I have a directory on my filesystem whose contents I want to serve through IPFS
Then:
I register the directory with IPFS, which turns it into an ipfs-pack. I will then be able to serve that content through IPFS by either running the ipfs-pack as a node or by relying on a local (intermediary) IPFS node.
Acceptance Scenario:
When a user tells ipfs to track a directory using
ipfs add --nocopy
See notes from reviewing filestore
The text was updated successfully, but these errors were encountered: