1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

6656 Commits

Author SHA1 Message Date
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
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
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
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
6f3ae5da29 Merge pull request #3307 from ipfs/feat/raw-nodes
Implement 'Raw Node' node type
2016-10-24 11:59:27 -07:00
bb986ebf4c rename DataSize to FileSize
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-19 11:17:29 -07:00
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
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
01ea333751 Merge pull request #3315 from ipfs/fix/metrics-injection
Fix metrics injection
2016-10-18 15:45:29 -07:00
8ce9963289 fix add/cat of small files
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-18 15:26:44 -07:00
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
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
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
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
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
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
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
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
9cb6ac17a7 Merge pull request #3301 from ipfs/feat/node-interface
Turn merkledag.Node into an interface
2016-10-17 16:24:45 -04:00
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
5ec0e59407 Merge pull request #3288 from ipfs/fix/readme-go-get
readme: fix go get invocations
2016-10-15 09:04:12 -04:00
48f7e14277 extract node interface
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-14 07:53:48 -07:00
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
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
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
015d476c4f Merge pull request #3297 from ipfs/feat/bitswap-cid
bitswap: protocol extension to handle cids
2016-10-12 10:13:30 -04:00
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
affb06d558 run gofmt
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 07:00:38 -07:00
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
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
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
dfd5e9aa1e Make BlockService an interface.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-11 14:50:06 -04:00
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
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
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
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
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
282bdc4816 cid: integrate cid into bitswap and blockstores
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-08 12:14:58 -07:00
2fd045f08f Merge pull request #3255 from ipfs/kevina/getlinks
Add DAGService.GetLinks() method and use it in the GC and elsewhere.
2016-10-08 11:45:43 -07:00
a49483bf58 Remove legacy multiset 'data' fields, comment and cleanup more
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-06 19:08:59 -07:00
772164cc7a Fix EnumerateChildren & hasChild to take a *cid.Cid instead of []*mdag.Link
Author: Kevin Atkinson <k@kevina.org>

Fix EnumerateChildren & hasChild to take a *cid.Cid instead of []*mdag.Link

Author: Jeromy Johnson <why@ipfs.io>

make FetchGraph use a cid

pin: fix TestPinRecursiveFail

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:55:31 -04:00
721df367a2 Don't use a separate LinkService for DAGService.GetLinks()
Instead make LinkService a part of DAGService.  The LinkService is now
simply an interface that DAGService implements.  Also provide a
GetOfflineLinkService() method that the GC uses to get an offline
instance.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:52:39 -04:00
dd1caddccb readme: fix go get invocations
They didn't previously make sure the code was up-to-date.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-10-06 17:42:10 +02:00
3899194cb0 Add DAGService.GetLinks() method and use it in the GC and elsewhere.
This method will use the (also new) LinkService if it is available to
retrieving just the links for a MerkleDAG without necessary having to
retrieve the underlying block.

For now the main benefit is that the pinner will not break when a block
becomes invalid due to a change in the backing file.  This is possible
because the metadata for a block (that includes the Links) is stored
separately and thus always available even if the backing file changes.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:38:41 -04:00
ec9ce83d88 pinset: clean up storeItems logic a bit
Switched from using a map to an array since the bounds are
small and fixed. This should save us some significant time and on
accesses

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 23:27:24 -07:00
c7e3d5d2ac add comment detailing the algorithm and fix
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 23:27:24 -07:00
1f853c59c3 fix bug in pinsets and add a stress test for the scenario
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 23:27:20 -07:00
67a1b3e1bf Merge pull request #3284 from ipfs/deps/libp2p-extravaganza
update to libp2p 4.0.1 and propogate other changes
2016-10-05 22:52:24 -07:00
1f9ec4e3ed update to libp2p 4.0.1 and propogate other changes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 22:12:43 -07:00
15fc223b6a Merge pull request #3281 from hsanjuan/docs/contribute/broken_link
contribute.md: fix broken link to 'ammending commits' doc.
2016-10-05 18:46:38 -07:00