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

files returned from unixfsnode should be traversable to their substrate #67

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

willscott
Copy link
Collaborator

This is looking at the fuse issue raised in ipfs/kubo#9044 (comment)

What seems to occur is that the node we get when resolving a file returns a unixfsnode File.

The ProtoNodeConverter only works on a direct PBNode so in the case that the response has been ADL'd into a unixfs File, we need to give it the substrate rather than the file

separately, this logic is brittle / unable to handle the io.ReadSeeker / large bytes node efficiency possible with unixfsnode and should get a larger refactor to support that.

However, in the mean time, this indicates that these files do comply with the ADL interface and so we can get the underlying substrate for use in fuse rather than the full file ipld object.

@bmwiedemann
Copy link

My quick test looks good with this.

Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rvagg rvagg merged commit 279d875 into main Aug 25, 2023
9 checks passed
@rvagg rvagg deleted the feat/file-as-ADL branch August 25, 2023 23:46
@rvagg rvagg mentioned this pull request Aug 25, 2023
@Konubinix
Copy link

Thanks a lot, I tried and so far it works like a charm. You made my day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants