Skip to content

Conversation

@hsanjuan
Copy link
Contributor

@hsanjuan hsanjuan commented Mar 26, 2025

@hsanjuan hsanjuan self-assigned this Mar 26, 2025
@hsanjuan hsanjuan requested a review from a team as a code owner March 26, 2025 08:31
Copy link
Contributor Author

@hsanjuan hsanjuan left a comment

Choose a reason for hiding this comment

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

I am not sure that we are going to make immediate use of this, but probably good to have.

Most immediate usecase would be to support MaxLinks in MFS if we wanted.

@hsanjuan
Copy link
Contributor Author

On second thoughts, we might need this since adding uses MFS..

Copy link
Contributor

@gammazero gammazero left a comment

Choose a reason for hiding this comment

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

Is this value ever written anywhere? Is not, maybe better to just use a const so everyone knows it is a fixed read-only value. Otherwise LGTM.

@lidel
Copy link
Member

lidel commented Mar 28, 2025

lgtm, we will expose it as configuration option, part of ipfs/kubo#10751


Prefix cid.Prefix
RawLeaves bool
MaxLinks int
Copy link
Member

Choose a reason for hiding this comment

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

@hsanjuan is this enough, given we've added separate setting for HAMT? (#897 (review))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is probably enough since this seems to deal only with files...

@lidel lidel changed the title DagModifier: allow specifying MaxLinks DagModifier: allow specifying MaxLinks per file Apr 11, 2025
@lidel lidel merged commit 6c5a076 into main Apr 11, 2025
18 of 19 checks passed
@lidel lidel deleted the feat/max-links-dag-modifier branch April 11, 2025 17:24
@lidel lidel changed the title DagModifier: allow specifying MaxLinks per file feat(ipld/unixfs): DagModifier: allow specifying MaxLinks per file Apr 11, 2025
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