-
Notifications
You must be signed in to change notification settings - Fork 429
Explain the relationship between MFS, IPFS, and UnixFS. #297
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
Comments
The doc says:
So, apparently, I can run things like:
That's nice. Somewhere, there is a mapping from path names to hashes. The documentation says nothing about how this mapping is established or where it is stored. My first thought was that My suggestion would be to update the documentation to something like this: "The The Paths used by This probably needs more a lot more elaboration and clarity, but at least it identifies some points that need addressing. I think one issue is that the semantics of For example, consider this:
|
Two quick notes (agreeing on most otherwise):
According to the cli docs, this only changes the CID version or hash function of the root node of a given path.
I would be against providing imlementation details in user documentation. How that happens does not (or should not) affect the usage of the feature. |
I'd say where the state is stored is both user-visible and affects the usage. For example, if it's stored in the file system, it is subject to backup, restore, version control, concurrent access, storage on network file systems etc. (i.e., after a local file system restore, a directory on IPFS created with these tools would seem to revert as well, an unexpected behavior for a distributed file system). |
There is no difference between that or any ipfs related data, everything is in
Did you get the idea that somehow MFS is backed up for you somewhere else so that it would keep state even if you reverted your IPFS repo? |
MFS could store state in memory/a daemon, in the current working directory, or in IPNS, all places IPFS also already stores state. All of those could be reasonable choices for something like MFS, depending on which use cases you have in mind. |
@tmbdev thanks, I see how being more detailed there can help users. @johnnymatthews I think we have enough feedback to actually write a good guide on MFS. Do you think this should still be under concepts/MFS, or a different content location? I volunteer myself to write it. |
Yeah |
@hsanjuan do you still have the bandwidth to write this doc, or should I open it up for a bounty? |
@hsanjuan does the update MFS document explain this issue better, the distinction between MFS & UnixFS? |
@johnnymatthews there has been a big update to this file (c5ed3ec). It has added examples using javascript (which I'm not sure are helpful at all as I would expect go's CLI examples). It still fails to explain how anything works in regards to MFS, while it does a better job with UnixFS. If I were to work on this, I'd throw most of the MFS subsection away, keeping some small CLI example or two at the end for the usual workflow. |
Correct, c5ed3ec was a bounty project completed by @realChainLife (in this thread). Using Go-IPFS or JS-IPFS is a debate for another time, but having any examples at all is a good thing. I'm assuming you no longer have time to write the changes you'd prefer to see on the page. Would you be able give list a few bullet points for what you'd like to see though? |
@johnnymatthews I could try to complete this issue if this makes sense? |
Assigned to you @alexmmueller! Drop any questions you've got in here. |
Are you still working on this one @alexmmueller? |
Re: Current docs about "File systems and IPFS": MFS and UnixFS My profile: Someone new to web3 and IPFs Reading the docsThe docs are doing a good job of explaining MFS and UnixFS respectively. However, there was still this uncertain feeling of my understanding [U1] being actually correct, due to these 2 passages in the docs: MFS:
UnixFS:
Suddenly I wondered: "If both handle linking, are they actually both describing a "file system, thus are they alternatives?" Wish to reduce confusionIt would have been helpful for me, to make this "hierarchy" between MFS and UnixFS clearer with a simple diagram, like
or a sentence like
Final wordsGenerally, the docs are well structured and written. |
Uh oh!
There was an error while loading. Please reload this page.
Tracking a user request at ipfs/kubo#7084 (comment)
URL of the page in question:
Maybe: https://docs.ipfs.io/guides/concepts/mfs/
What's wrong with this page?
See confusion in above thread.
Related: how to manually create and modify unixfs directories (it has come up several times in the last week).
The text was updated successfully, but these errors were encountered: