- 19 7月, 2018 2 次提交
-
-
It doesn't exist on all operating systems. License: MIT Signed-off-by:Steven Allen <steven@stebalien.com>
由 Steven Allen 提交于 -
fixes #5260 License: MIT Signed-off-by:Steven Allen <steven@stebalien.com>
由 Steven Allen 提交于
-
- 18 7月, 2018 11 次提交
-
-
when sending blocks in bitswap, close streams asynchronously
由 Whyrusleeping 提交于 -
commands/files: add error messages for `cp` paths
由 Whyrusleeping 提交于 -
unixfs: refactor `precalcNextBuf`
由 Whyrusleeping 提交于 -
unixfs: fix `dagTruncate` to preserve node type
由 Whyrusleeping 提交于 -
Otherwise, we tie up the bitswap worker until the other side responds with an EOF. fixes #5247 related to https://github.com/libp2p/go-libp2p-net/issues/28 License: MIT Signed-off-by:
Steven Allen <steven@stebalien.com>
由 Steven Allen 提交于 -
License: MIT Signed-off-by:Lucas Molas <schomatis@gmail.com>
由 Lucas Molas 提交于 -
License: MIT Signed-off-by:Lucas Molas <schomatis@gmail.com>
由 Lucas Molas 提交于 -
Extract the original `FSNode` passed inside the `ipld.Node` argument and modify its `Blocksizes` (removing all of them and re-adding the ones that were not truncated). In contrast, the replaced code was creating a new `FSNode` that was not preserving some of the features of the original one. Change `TRUNC_HASH` values in `sharness` that were created with the bug to the correct values. License: MIT Signed-off-by:Lucas Molas <schomatis@gmail.com>
由 Lucas Molas 提交于 -
add trickle-dag support to the urlstore
由 Whyrusleeping 提交于 -
fix truncating when already at the correct size
由 Whyrusleeping 提交于 -
fixes #4518 License: MIT Signed-off-by:Steven Allen <steven@stebalien.com>
由 Steven Allen 提交于
-
- 17 7月, 2018 18 次提交
-
-
Improve paths in CoreApi
由 Whyrusleeping 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
License: MIT Signed-off-by:Łukasz Magiera <magik6k@gmail.com>
由 Łukasz Magiera 提交于 -
always try to read ahead by at least 5 blocks in the PBDagReader
由 Whyrusleeping 提交于 -
update go-cid
由 Whyrusleeping 提交于
-
- 16 7月, 2018 9 次提交
-
-
alternative to #5243 that updates go-cid and all packages that depend on it License: MIT Signed-off-by:Steven Allen <steven@stebalien.com>
由 Steven Allen 提交于 -
License: MIT Signed-off-by:Steven Allen <steven@stebalien.com>
由 Steven Allen 提交于 -
License: MIT Signed-off-by:Steven Allen <steven@stebalien.com>
由 Steven Allen 提交于 -
fixes #5241 License: MIT Signed-off-by:Steven Allen <steven@stebalien.com>
由 Steven Allen 提交于 -
License: MIT Signed-off-by:Steven Allen <steven@stebalien.com>
由 Steven Allen 提交于 -
importer: remove `UnixfsNode` from the balanced builder
由 Whyrusleeping 提交于 -
Create new `loadBufNode` function to handle the `buf` logic which is unrelated to the main `precalcNextBuf` logic of processing promises to fetch nodes. License: MIT Signed-off-by:Lucas Molas <schomatis@gmail.com>
由 Lucas Molas 提交于 -
Do not use `NewDagReader` just for the `RawNode` case. Treat invalid UnixFS types in the same case. License: MIT Signed-off-by:Lucas Molas <schomatis@gmail.com>
由 Lucas Molas 提交于 -
The `UnixfsNode` structure has multiple pointers to many (non-complementary) mutually exclusive node types, only some of them are active (not-`nil`) at a given time in the code path which made the code too convoluted. Specifically, the most important distinction between node types was being hidden: leaf nodes vs internal (non-leaf) nodes. Remove entirely the use of `UnixfsNode` from the `balanced` package replacing it in turn with the newly created `FSNodeOverDag` structure that represents the UnixFS node encoded inside the DAG node, primarily used for internal node representations. Leaf nodes are handled exclusively in the `NewLeafDataNode` encapsulating its multiple representations (that we're previously exposed in `UnixfsNode` as conflicting pointers). The `builder.go` file has been completely rewritten, although the basic DAG creation algorithm has been preserved (extending a full DAG by creating a new root and linking the old one as its child), the most significant modification has been in the loop of `Layout` that now only handles internal nodes (i.e., nodes with `depth` bigger than zero) to be able to adapt `fillNodeRec` to only that scenario (avoiding the replace logic of the zero `depth` case with the defective `Set` function, now removed). The `fillNodeRec` now explicitly returns the `ipld.Node` and the size of the file data it's storing to propagate it upwards into the DAG. The `DagBuilderHelper` was heavily extended to incorporate `ipld.Node` functions that would replace the `UnixfsNode` ones used by the balanced builder: `NewLeafNode()`, `NewLeafDataNode()` and `AddNodeAndClose()`. Also, the `ProcessFileStore` function was incorporated to encapsulate all the logic related to the Filestore support which was scattered throughout the builder logic, the `offset` that was being passed through most functions is now a part of the `DagBuilderHelper`. This has turned out to be a rather big commit, it should have been split into more smaller and logically cohesive commits, but the `UnixfsNode` was too entangled inside the logic and that would have required a progressive modification of the `UnixfsNode` structure as well, which wasn't possible as it is still being used by the balanced builder (the same reason why most of the `UnixfsNode`-related functions cannot yet be removed, leaving the `helpers.go` file mostly untouched). License: MIT Signed-off-by:Lucas Molas <schomatis@gmail.com>
由 Lucas Molas 提交于
-