Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-auto-pin-rm option for ipfs name publish #3924

Open
JayBrown opened this issue May 14, 2017 · 1 comment
Open

-auto-pin-rm option for ipfs name publish #3924

JayBrown opened this issue May 14, 2017 · 1 comment
Labels
need/community-input Needs input from the wider community

Comments

@JayBrown
Copy link

Regarding the comments here: ipfs-inactive/faq#16 (comment)

Would be great to have an option to auto-remove pinned files from local storage, if they're not part of a directory anymore that has been content-edited & republished under the same ipns hash. (Obviously, this would also extend to publications under keys different from "self".)

Such an option might however need a bit of intelligence, i.e. it would also have to be determined if an ipfs hash that's not part of a revised ipns publication anymore, is still published under a different ipns hash (check across all keys); if it's still part of another ipns publication, that should override any auto-pin-rm option, and the individual file should stay pinned to local storage.

@whyrusleeping whyrusleeping added the need/community-input Needs input from the wider community label Sep 2, 2017
@whyrusleeping
Copy link
Member

This might be a nice feature to have. Though it might be more user friendly to look at integrating ipns and mfs. Things in mfs are 'best effort' pinned, meaning none of the blocks you have locally for a graph will be garbage collected, but it doesnt require having all of the blocks. (this is very useful when you want to work with very large datasets lazily).

Ipns entries could automatically get put somewhere inside of mfs (meaning they are pinned). Then when updating them, they overwrite the old entry, thus unpinning it as a side effect.

Just a thought, doesnt necessarily have to be the direction we take.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/community-input Needs input from the wider community
Projects
None yet
Development

No branches or pull requests

2 participants