Commit Graph

11097 Commits

Author SHA1 Message Date
Łukasz Magiera
de6a6e3e44 path: simplify ResolveToLastNode
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-23 17:37:33 +02:00
Whyrusleeping
80fcc4ecf1
Merge pull request #5276 from schomatis/fix/dag-mod/testLargeWriteChunks/seek
test: testLargeWriteChunks: seek before reading
2018-07-22 20:54:31 -07:00
Lucas Molas
c6fb30450f test: testLargeWriteChunks: seek before reading
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-22 23:02:19 -03:00
Whyrusleeping
ec61e06c68
Merge pull request #5262 from schomatis/fix/mfs/test/seek-before-read
mfs: seek to 0 before reading in `TestTruncateAndWrite`
2018-07-22 18:36:59 -07:00
Whyrusleeping
8ae5119105
Merge pull request #5261 from ipfs/fix/5260
fix check_go_path when it has spaces in it
2018-07-22 18:36:45 -07:00
Whyrusleeping
8a29985298
Merge pull request #5274 from ipfs/feat/noplugin
build tag to disable dynamic plugins
2018-07-22 18:35:28 -07:00
Whyrusleeping
b818679c9b
Merge pull request #5117 from ipfs/kevina/idhash0
Add initial support for identity hashes (Part 1)
2018-07-22 14:26:09 -07:00
Łukasz Magiera
c85824448d build tag to disable dynamic plugins
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-22 21:23:30 +02:00
Łukasz Magiera
492a4fc46b path: fix dag tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-21 17:29:18 +02:00
Łukasz Magiera
a11c5d27e1 path: gateway test for sharded dirs
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-21 15:15:40 +02:00
Łukasz Magiera
772deca3e9 Fix resolving links in sharded directories on gateway
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-21 14:58:16 +02:00
Dominic Della Valle
7a3566b007 handle backslash paths in check_go_path
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-07-20 08:35:25 -04:00
Lucas Molas
acf12b6eaf mfs: seek to 0 before reading in TestTruncateAndWrite
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-19 20:52:19 -03:00
Steven Allen
f90fffbdc8 fix path sep on windows in check_go_path
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-19 15:31:11 -07:00
Kevin Atkinson
c8613b4300 Add initial support for identity hashes.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-19 18:09:52 -04:00
Whyrusleeping
1dede1b1d7
Merge pull request #5219 from schomatis/fix/mfs/remove-sort
mfs: remove `sort` from `ListNames()`
2018-07-19 14:29:11 -05:00
Steven Allen
24832881dd fix shebang in check_go_path
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-19 09:01:32 -07:00
Steven Allen
5ac752f1fb avoid realpath in check_go_path
It doesn't exist on all operating systems.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-18 19:05:48 -07:00
Steven Allen
439b0e35dc fix check_go_path when it has spaces in it
fixes #5260

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-18 17:12:12 -07:00
Whyrusleeping
6f140d2579
Merge pull request #5258 from ipfs/fix/5247
when sending blocks in bitswap, close streams asynchronously
2018-07-18 14:28:29 -05:00
Whyrusleeping
256ad27099
Merge pull request #5218 from schomatis/fix/cmds-files-cp/err-msg
commands/files: add error messages for `cp` paths
2018-07-18 12:19:06 -05:00
Whyrusleeping
a44bffba76
Merge pull request #5237 from schomatis/fix/unixfs/dag-reader/next-buf
unixfs: refactor `precalcNextBuf`
2018-07-18 12:17:12 -05:00
Whyrusleeping
e8cc52966e
Merge pull request #5216 from schomatis/fix/dag-modifier/preserve-fsnode
unixfs: fix `dagTruncate` to preserve node type
2018-07-18 12:01:40 -05:00
Steven Allen
3e3065861d when sending blocks in bitswap, close streams asynchronously
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>
2018-07-18 09:56:25 -07:00
Lucas Molas
70d0f13c9c unixfs/mod: add test to Truncate to the same size
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-18 13:14:34 -03:00
Lucas Molas
508af1e12c mfs: add test case for MFS repeated truncation failure
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-18 13:14:32 -03:00
Lucas Molas
65a18ed669 unixfs: fix dagTruncate to preserve node type
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>
2018-07-18 13:07:21 -03:00
Whyrusleeping
454a170032
Merge pull request #5245 from ipfs/fix/5241
add trickle-dag support to the urlstore
2018-07-18 10:39:10 -05:00
Whyrusleeping
d74ec0d9d4
Merge pull request #5253 from schomatis/fix/dag-truncate/same-size
fix truncating when already at the correct size
2018-07-18 10:38:50 -05:00
Steven Allen
e6545a24b2 fix truncating when already at the correct size
fixes #4518

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-18 11:25:16 -03:00
Whyrusleeping
9bad5fe6fe
Merge pull request #4672 from ipfs/feat/coreapi-paths
Improve paths in CoreApi
2018-07-17 18:06:58 -05:00
Łukasz Magiera
4d5a96b0d6 coreapi: path rebase
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 09:00:50 +02:00
Łukasz Magiera
7adf1cb40d coreapi: move path utils to interface
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:44:54 +02:00
Łukasz Magiera
082498de6d coreapi: more docs for ResolvedPath
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
0adb69a773 coreapi: fix TestGatewayGet after rebase
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
0f6bd2d173 coreapi: fix resolved path root for some paths
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
e227fc3865 coreapi: fix ipns path resolving
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
604b187cca path: add tests for ipld paths
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
d5b5e0d7ac coreapi: add more docs for path
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
1d23bbeb0f coreapi: path review
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
9b288560a4 coreapi: path remainders
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
7ee6194352 coreapi: path.Mutable
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
f5f44ab246 coreapi: remove ctx from ParsePath, split ParseCid
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
15f8fc60c0 coreapi: separate path into two types
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
4f6c0666ea coreapi: move path impl to path.go
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:42:06 +02:00
Łukasz Magiera
338e90e9c8 coreapi: expand public path api
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:40:48 +02:00
Whyrusleeping
3218703f21
Merge pull request #5162 from ipfs/feat/improve-preload
always try to read ahead by at least 5 blocks in the PBDagReader
2018-07-16 23:43:14 -05:00
Whyrusleeping
2dcb7f0985
Merge pull request #5246 from ipfs/gx/update-go-cid
update go-cid
2018-07-16 22:29:35 -05:00
Steven Allen
9a9979b193 update go-cid
alternative to #5243 that updates go-cid and all packages that depend on it

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-16 15:16:49 -07:00
Steven Allen
4d4f343df7 check hashes in urlstore sharness tests
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-16 15:04:46 -07:00