Commit Graph

7954 Commits

Author SHA1 Message Date
Steven Allen
8b6c6645e2 lower yamux accept buffer size
Should *massively* reduce the amount of memory used by each peer (by 60KiB).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-19 12:11:09 -07:00
Jeromy Johnson
b5794c4474 Merge pull request #4323 from ipfs/gx/update-lxc2hc
gx: update go-peerstream
2017-10-19 19:15:15 +01:00
Kevin Atkinson
0182e5977c Documentation.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
798afedf8d Make --hash and related option local to sub-commands that use them.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
00a3b1df21 Address C.R. in t0250-files-api.sh.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
b5b61f7527 Rename "files update" to "files chcid".
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
d29930c031 Eliminate Prefix field from MFS root, use MkdirOpts.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
fd7b72fa16 Fix help text for "update" command.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
47c198ceb8 Enhance sharness tests.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
63ddffdb5d Add "files update" command.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
18a6344bdd Add --cid-version and --hash-fun option to files API
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
f2fbfdf291 mfs: inherit CID prefix from from parent directory
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
77e9b8ddf9 Test for alternative hash function in Dag Modifier.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:42 -04:00
Kevin Atkinson
2e15dcb647 Enable CidV1 (and other prefixes) in the Dag Modifier.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 13:30:53 -04:00
Kevin Atkinson
a3bd2c23b3 Add "--raw-leaves" option to "ipfs files"
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 13:00:24 -04:00
Kevin Atkinson
7302c3ab66 Provide support for raw leaves in DAG modifier.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 12:59:40 -04:00
Kevin Atkinson
189cf0cb03 Test raw leaves in trickle dag tests.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 12:59:40 -04:00
Steven Allen
d74ddd73f2 gx import go-libp2p-interface-connmgr
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-19 08:29:38 -07:00
Steven Allen
2f9e9ec571 gx update go-peerstream, go-libp2p-floodsub
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-19 08:20:35 -07:00
Łukasz Magiera
3fbb77153b gateway: custom seeker for files
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-18 22:25:36 +02:00
Łukasz Magiera
e71dce5dfb gateway: fix seeker can't seek on specific files
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-18 20:10:22 +02:00
Jeromy Johnson
5c9125e8b5 Merge pull request #4315 from ipfs/feat/sessions-tagging
tag peers associated with a bitswap session
2017-10-18 16:01:03 +01:00
Jeromy Johnson
329eb1cd1d Merge pull request #4316 from ipfs/fix/bitswap-active-peers
filter out "" from active peers in bitswap sessions
2017-10-18 12:17:52 +01:00
Jeromy Johnson
08733c2b30 Merge pull request #4317 from ipfs/feat/remove-bsnet-todo
NewStream now creates a connection if necessary
2017-10-18 12:16:58 +01:00
Steven Allen
d727a75e6d NewStream now creates a connection if necessary
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-17 15:58:27 -07:00
Steven Allen
37296d3958 filter out "" from active peers in bitswap sessions
We use "" to indicate that the block came from the local node. There's no reason
to record "" as an active peer (doesn't really *hurt* but still...).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-17 15:37:46 -07:00
Jeromy
3eafbea262 tag peers associated with a bitswap session
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-17 12:03:48 -07:00
Koushik Roy
d840f67e0a Check for Peers before dht provide (#4290)
* Check for Peers before `dht provide`

Check if there are any peers before running logic for `dht provide`

License: MIT
Signed-off-by: Koushik Roy <meff@meff.me>
2017-10-17 13:29:35 +01:00
Jeromy Johnson
c9705c6b31 Merge pull request #4310 from ipfs/fix/p2p-sharness
sharness: make t0180-p2p less racy
2017-10-17 13:07:22 +01:00
Jeromy Johnson
bae3d73e07 Merge pull request #4270 from ipfs/misc/pnet-docs/boot
docs(pnet): add more info about bootstrap
2017-10-17 00:20:16 +01:00
Łukasz Magiera
0f935ef136 sharness: make t0180-p2p less racy
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-16 23:19:03 +02:00
Jeromy Johnson
6beab668fd Merge pull request #4288 from ipfs/feat/connmgr
Implement Connection Manager
2017-10-16 18:37:11 +01:00
Jeromy Johnson
b4463d2c79 Merge pull request #4307 from ipfs/fix/remove-rest-of-supernode
remove the rest of the supernode code
2017-10-16 18:05:53 +01:00
Jeromy
62d521783f Integrate connection manager
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-16 09:46:46 -07:00
Steven Allen
603ecf62e3 add sharness test for deprecated supernode option
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-16 09:27:24 -07:00
Enrique Erne
2eea7ba4b8 shorter description for chunker option
License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-15 10:29:47 +02:00
Steven Allen
a0bedf6a5b remove the rest of the supernode code
missed in the initial cleanup

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-14 16:43:30 -07:00
Enrique Erne
92f96ee689 adds more info about chunker option
see https://github.com/ipfs/go-ipfs/issues/4276

License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-14 19:32:35 +02:00
John Reed
07029ca32b handle sym links in when calculating repo size
repo/fsrepo: follow symbolic links when calculating RepoSize

Now if the IPFS path is a symbolic it will be followed before
calculating the repo size.

License: MIT
Signed-off-by: John Reed <john@re2d.xyz>
2017-10-14 08:59:24 -05:00
Jeromy
94ec788555 update deps for new connmgr code
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-14 05:38:52 -07:00
Jeromy Johnson
786d81eda5 Merge pull request #4302 from ipfs/fix/3950
remove supernode routing
2017-10-14 13:36:02 +01:00
Jeromy Johnson
9c06a0ee10 Merge pull request #4296 from ipfs/feat/parallel-batch
parallelize batch flushing
2017-10-14 13:34:09 +01:00
Steven Allen
93f3117d7d remove supernode routing
It was never fully implemented and isn't used.

fixes #3950

(not removing routing/mock because that *is* in use).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-12 19:39:29 -07:00
Steven Allen
9de031b432 preallocate Batch's blocks buffer on commit.
It's probably safe to assume that this buffer will be about the same time each
flush.

This could cause 1 extra allocation (if this is the last commit) but that's
unlikely to be an issue.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-11 11:43:30 -07:00
Steven Allen
e41848c537 create an issue for tuning the parallelism constant
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-11 11:40:54 -07:00
Jeromy Johnson
e7acb96c65 Merge pull request #4285 from ipfs/feat/raw-dag
add raw support to the dag put command.
2017-10-11 12:41:33 +03:00
Steven Allen
613508a0d3 add raw support to the dag put command.
`dag get` still doesn't properly support raw output but that's a bigger issue.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-10 19:58:23 -07:00
Steven Allen
09136e931b parallelize batch flushing
1. Modern storage devices (i.e., SSDs) tend to be highly parallel.
2. Allows us to read and write at the same time (avoids pausing while flushing).

fixes https://github.com/ipfs/go-ipfs/issues/898#issuecomment-331849064

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-10 19:38:27 -07:00
Jeromy Johnson
1e73c3fb09 Merge pull request #4212 from ipfs/fix/sharness-indent
Fix indent in sharness tests
2017-10-09 16:56:26 +03:00
Jeromy Johnson
4f478e2c57 Merge pull request #4255 from ipfs/docs/plugin
docs: Add some docs on plugins
2017-10-09 16:55:31 +03:00