go-ipfs version: 0.4.11-
Repo version: 6
System version: amd64/darwin
Golang version: go1.9
Documentation, cli help
Low
ipfs add --help mentions the chunker option, but has no explanation for what values it accepts.
ipfs add --help
...
-s, --chunker string - Chunking algorithm to use.
According to @JustinDrake
The default is to use a block size of DefaultBlockSize int64 = 1024 * 256. Another block size can be specified using size-. There's also the rabin- chunker which uses rabin-[min]-[avg]-[max].
https://github.com/ipfs/faq/issues/214#issuecomment-268797117
is also missing in https://ipfs.io/docs/api/#api-v0-add
Is this correct and should it be added to ipfs add --help?
Is this correct and should it be added to
Yes. Are you volunteering 馃樃 ?
FYI, the variables in size-[size] and rabin-[min]-[avg]-[max] is in bytes, not KiB (as I just learned...).
Are you volunteering 馃樃 ?
Let me try, but I am slow bear with me. 2 questions
1) What exactly is the default? Guessing something like size-256
2) I change the text from Chunking algorithm to use. to Chunking algorithm to use. Another block size can be specified using size-. There's also the rabin- chunker which uses rabin-[min]-[avg]-[max] + default
size-262144 (1024*256).There were 2 PRs to improve this #4306 and #4347 from @thisconnect back in 2017 so I'm gonna go ahead and close this. Thanks @thisconnect !
Also of note, @alanshaw and I made a tool to visualise how these options alter the dag that is created