How does mount fetch blocks

In Linux, Using ipfs mount, I have already mounted ipfs directory in the default location /ipfs.

Question: How does mount fetch blocks?
Let’s assume OS makes a request to fetch block #1 of some file. Will IPFS fetch block #1 and supply it to the OS? OR does ipfs download all blocks of the file and then supply the blocks to OS.

I’m not sure how that’s handled in the fuse layer, but ipfs nodes are seekable, so in theory the data will be downloaded when it’s needed. (note that you may need to update to the newest version as the previous ones had a subtle bug which broke this behaviour)

2 Likes

Thank you very much! That’s very helpful. Which would be the newest version? I downloaded IPFS couple months ago.

You can always find the latest version on https://dist.ipfs.io/#go-ipfs