mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-03 04:37:30 +08:00
improves description about the rabin chunker
License: MIT Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
This commit is contained in:
@ -75,10 +75,11 @@ You can now refer to the added file in a gateway, like so:
|
|||||||
The chunker option, '-s', defines the chunking strategy for how
|
The chunker option, '-s', defines the chunking strategy for how
|
||||||
ipfs puts larger files into blocks. Blocks with same content can
|
ipfs puts larger files into blocks. Blocks with same content can
|
||||||
be deduplicated. The default is a fixed block size of
|
be deduplicated. The default is a fixed block size of
|
||||||
256 * 1024 bytes, 'size-262144'. A variable block size can be
|
256 * 1024 bytes, 'size-262144'. Alternatively, you can use the
|
||||||
specified by using the rabin chunker, rabin-[min]-[avg]-[max].
|
rabin chunker for content defined chunking by specifying
|
||||||
Using different chunking strategies will produce different hashes
|
rabin-[min]-[avg]-[max] (where min/avg/max refer to the resulting
|
||||||
for the same file.
|
chunk sizes). Using other chunking strategies will produce
|
||||||
|
different hashes for the same file.
|
||||||
|
|
||||||
> ipfs add --chunker=size-1024 ipfs-logo.svg
|
> ipfs add --chunker=size-1024 ipfs-logo.svg
|
||||||
added QmZ9KNxxeeLCPrdceBjvVcmSyLbUWMF4ceKDP8yboLNoHT ipfs-logo.svg
|
added QmZ9KNxxeeLCPrdceBjvVcmSyLbUWMF4ceKDP8yboLNoHT ipfs-logo.svg
|
||||||
|
Reference in New Issue
Block a user