Commit Graph

6669 Commits

Author SHA1 Message Date
Jeromy
afce683eae update go-libp2p-swarm with deadlock fixes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-30 19:16:28 -07:00
Jeromy Johnson
3ece039f1b Merge pull request #3334 from ipfs/fix/tar-add-buffering
dont buffer entire input for tar adds
2016-10-30 11:47:11 -07:00
Jeromy Johnson
634005a1ab Merge pull request #3324 from ipfs/feat/block-cid-codec
allow cid format selection in block put command
2016-10-29 21:59:19 -07:00
Jeromy Johnson
8d4fd80fc1 Merge pull request #3325 from ipfs/feat/cbor-ipld
Implement cbor ipld nodes and a first pass at the 'dag' command
2016-10-29 21:59:06 -07:00
Jeromy
c6a273fd05 add more helptext to dag commands
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-29 18:03:25 -07:00
Jeromy
f68e1843f4 allow cid format selection in block put command
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-28 19:03:14 -07:00
Jeromy
0b8271f292 dont buffer entire input for tar adds
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-28 17:29:24 -07:00
Jeromy
4c5a5c8a8f more cleanup, update cboripld package
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-28 12:56:47 -07:00
Jeromy
f7d3f61673 clean up some code, update cbor package, and add tests
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-27 15:49:41 -07:00
Jeromy Johnson
17c629d7bc Merge pull request #3321 from ipfs/feat/resolver-refactor
make path resolver no longer require whole node for construction
2016-10-26 11:29:48 -07:00
Jeromy
67c2a4ec14 make path resolver no longer require whole node for construction
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 15:04:44 -07:00
Jeromy
6b797f10a4 Implement cbor ipld nodes and a first pass at the 'dag' command
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 12:07:28 -07:00
Jeromy Johnson
1c6e84ce7c Merge pull request #3326 from ipfs/feat/update-ipld-node
update to new cid and ipld node packages
2016-10-25 10:47:34 -07:00
Jeromy
eac13abaec update to new cid and ipld node packages
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 09:54:04 -07:00
Jeromy Johnson
465044abb9 Merge pull request #3314 from ipfs/kevina/posinfo-2
Create a FilestoreNode object to carry PosInfo
2016-10-24 17:12:38 -07:00
Kevin Atkinson
65ffff2418 Add tests that PosInfo() is getting set.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-24 16:37:57 -04:00
Kevin Atkinson
73f9a90cbf Create a FilestoreNode object to carry PosInfo
When doing a filestore add, we wrap whatever nodes we create in a
FilestoreNode object and add the PosInfo to it so that the filestore
will be able to extract information as needed.

Edited by whyrusleeping

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-24 16:30:45 -04:00
Jeromy Johnson
6f3ae5da29 Merge pull request #3307 from ipfs/feat/raw-nodes
Implement 'Raw Node' node type
2016-10-24 11:59:27 -07:00
Jeromy
bb986ebf4c rename DataSize to FileSize
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-19 11:17:29 -07:00
Jeromy
9796a03624 update HashOnRead validation to properly support cids
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-18 16:03:26 -07:00
keks
68d8a298c5 http api: makes sure header is sent even when r is not ready yet. fixes #3304 (#3305)
* http api: send header even when r is not ready yet. fixes #3304

License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>

* http api: check flush error and only flush once per iteration

License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>

* http api: f.Flush is not in fact returning anything

License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>

* api http: remove pointless Flush

License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-10-18 15:46:07 -07:00
Jeromy Johnson
01ea333751 Merge pull request #3315 from ipfs/fix/metrics-injection
Fix metrics injection
2016-10-18 15:45:29 -07:00
Jeromy
8ce9963289 fix add/cat of small files
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-18 15:26:44 -07:00
Jeromy
3796e7020e raw dag: make raw nodes work in cat and get, add tests
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-18 11:07:32 -07:00
Jeromy Johnson
716aa867f5 Merge pull request #3310 from ipfs/kevina/cid2dskey
ds-help: add helper functions to convert from Cid to DsKey and the reverse
2016-10-18 10:24:20 -07:00
Jakub Sztandera
06a5381c2a
feat: make metrics injection log an error instead of warning
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-10-18 18:19:02 +02:00
Jakub Sztandera
e254f0d8b5
test: check if metrics work in sharness
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-10-18 12:28:50 +02:00
Jakub Sztandera
de34ef813b
Fix metrics being injected after node initalization
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-10-18 08:59:15 +02:00
Jeromy
ded60a7356 unixfs: allow use of raw merkledag nodes for unixfs files
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-17 16:51:39 -07:00
Jeromy Johnson
62fcf7e9e2 Merge pull request #3308 from ipfs/kevina/cli-refactor
cli: refactor to expose argument parsing functionality
2016-10-17 19:03:23 -04:00
Kevin Atkinson
c4fbe348f8 ds-help: add helper func to convert from Cid to DsKey and the reverse
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-17 18:13:07 -04:00
Jeromy Johnson
9cb6ac17a7 Merge pull request #3301 from ipfs/feat/node-interface
Turn merkledag.Node into an interface
2016-10-17 16:24:45 -04:00
Kevin Atkinson
8570a5293b cli: refactor to expose argument parsing functionality
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-16 03:35:39 -04:00
Jeromy Johnson
5ec0e59407 Merge pull request #3288 from ipfs/fix/readme-go-get
readme: fix go get invocations
2016-10-15 09:04:12 -04:00
Jeromy
48f7e14277 extract node interface
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-14 07:53:48 -07:00
Jeromy Johnson
d5c716a3f0 Merge pull request #3302 from ipfs/test/pin-fail-stress
add test to be run to detect future regressions in pinsets
2016-10-14 10:21:43 -04:00
Jeromy
8a33801607 add test to be run to detect future regressions in pinsets
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 09:29:09 -07:00
Jeromy
01aee44679 merkledag: change 'Node' to be an interface
Also change existing 'Node' type to 'ProtoNode' and use that most
everywhere for now. As we move forward with the integration we will try
and use the Node interface in more places that we're currently using
ProtoNode.

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 08:16:03 -07:00
Jeromy Johnson
015d476c4f Merge pull request #3297 from ipfs/feat/bitswap-cid
bitswap: protocol extension to handle cids
2016-10-12 10:13:30 -04:00
Jeromy Johnson
711cd8f005 Merge pull request #3294 from ipfs/kevina/dup-prov-cache-fix
Create a write-through block service
2016-10-12 10:13:09 -04:00
Jeromy
affb06d558 run gofmt
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 07:00:38 -07:00
Jakub Sztandera
7e4b74bf5e Change the test from being Has based to Put based
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-10-11 15:08:01 -04:00
Jakub Sztandera
9854683daa test: check if NewWriteThrough is not calling Has
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-10-11 15:04:07 -04:00
Kevin Atkinson
1173c003f5 Create a "write through" BlockService.
Create a block service where all writes are guaranteed to go though
to the blockstore.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-11 14:57:02 -04:00
Kevin Atkinson
dfd5e9aa1e Make BlockService an interface.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-11 14:50:06 -04:00
Jeromy
f4d7369c4a bitswap: protocol extension to handle cids
This change adds the /ipfs/bitswap/1.1.0 protocol. The new protocol
adds a 'payload' field to the protobuf message and deprecates the
existing 'blocks' field. The 'payload' field is an array of pairs of cid
prefixes and block data. The cid prefixes are used to ensure the correct
codecs and hash functions are used to handle the block on the receiving
end.

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-10 08:19:31 -07:00
Jeromy Johnson
edf2b52f7a Merge pull request #3298 from ipfs/feat/bump-0.4.5-dev
bump dev version to 0.4.5
2016-10-10 08:17:53 -07:00
Jeromy
20ceb9241b bump dev version to 0.4.5
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-10 07:50:27 -07:00
Jeromy Johnson
7962903a2a Merge pull request #3290 from ipfs/feat/el-cid-2
The conquest of El Cid, Pt. 2
2016-10-10 06:37:00 -07:00
Jeromy Johnson
391b78a23c Merge pull request #3273 from ipfs/fix/pin-fail
fix bug in pinsets and add a stress test for the scenario
2016-10-08 17:09:06 -07:00