-
Notifications
You must be signed in to change notification settings - Fork 11
echo "blah" > /ipns/local/blah.txt #232
Comments
After watching the IPFS demo video ( |
Hi @glowkeeper! Just a word of caution, our FUSE support is lacking a bit of love and tends to be unstable. Anyways. With the FUSE support, you won't be able to change When you're adding anything to There is also a bit more information about FUSE here: #188 |
Thanks @victorbjelkholm! Okay, yeah - I get the immutability bit. Does that mean that once I add a file to ipfs, i.e. |
Okay, so now I can see |
Yes, that is correct. If you have two files with the same content, they'll get the same hash, no matter where/when you add them. Unsure of what you mean with the second comment. IPNS is simply a mutable pointer to a IPFS hash. So when you add a file, you get a hash that looks like /ipfs/Qm... which you can then tell /ipns/:your-peer-id to point to. So you wouldn't update /ipfs/Qm..., you would simply add all of your new contents, get a new hash back and point /ipns/your-peer-id to that hash. Maybe this little demonstration would help a bit:
What I'm doing here is the following:
IPFS hashes would change, every time the content change, while the IPNS record is mutable, and points to those hashes. |
That's a great explanation - thanks! Two small issues - when I first ran So, I did what I was told (like a good boy), and unmounted But once I'd followed your whole tutorial, and run |
Anyway - FUSE is really not the point here, is it. I mean, it'd be nice if I could see all the stuff I added as a regular filesystem file, but as long as I can see things under ipfs and ipns themselves, I'm not certain I'm that bothered about FUSE, really ;) |
Yeah, but as I said, our FUSE support is flaky, to say the least. But I tried the following and it worked for me: (first start daemon with
|
Hmmmm - well, I could do that too. So it seems everything is working as intended and the failing was my brain (as usual). However, I think the 'problem' is to do with directory mount point permissions or something, 'cause when I do this So, as a test, I did this:
In other words, all works correctly. I think the moral of the story is add everything under a directory (i.e. |
This issue was moved to https://discuss.ipfs.io/t/echo-blah-ipns-local-blah-txt/270 |
I'm not understanding FUSE and/or ipfs.
If I do this:
echo "blah" > /ipns/local/blah.txt
, why can't I see the file when I loadhttp://localhost:5001/ipfs/QmU3o9bvfenhTKhxUakbYrLDnZU7HezAVxPM6Ehjw9Xjqy/#/files?_k=xcgjgk
?Additionally, after running
ipfs daemon
&&ipfs mount
(oripfs daemon --mount
), why can't I see nodes I have added to ipfs under/ipfs/QmU8eXynTUJTXYPPmTvPtJbde6EbVh5EGXjSu1PR5Rsnc2
, i.e. after I runipfs add helloWorld.txt
, why can't I see helloWorld.txt in/ipns/local
or/ipfs/QmU8eXynTUJTXYPPmTvPtJbde6EbVh5EGXjSu1PR5Rsnc2
?Forgive me if I'm misunderstanding something fundamental, or if my question is silly, but I presumed FUSE would allow me to treat ipfs nodes as a 'normal filesystem'. However, that doesn't appear to be so (or, more likely, I'm doing something wrong)....
The text was updated successfully, but these errors were encountered: