Commit Graph

283 Commits

Author SHA1 Message Date
Łukasz Magiera
9aab19ea35 object-patch: Support linking to non-dagpb objects
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-06 20:59:34 +01:00
Łukasz Magiera
6401a9191e gx: Update go-datastore to 1.4.0
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-02 14:55:26 -08:00
Jan Winkelmann
f287524949 cmd: use go-ipfs-cmds
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:41 +01:00
Ian Preston
4f11baa0be add tests for basic name matching in pin update
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2017-10-28 23:26:28 +01:00
Ian Preston
825add0120 improve style
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2017-10-28 12:56:53 +01:00
Ian Preston
885de4f352 optimise pin update command
This handles merkle links that aren't named. And improves the
Peergos usage from worst case 30s to ~20ms

License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2017-10-28 12:28:07 +01:00
Jeromy Johnson
005d243cd3 Merge pull request #4320 from ipfs/fix/gateway-seeker
gateway: fix seeker can't seek on specific files
2017-10-20 13:15:32 +01:00
Łukasz Magiera
913f9641e4 merkledag: keep key order in dedupeKeys
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-20 01:26:27 +02: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
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
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
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
Łukasz Magiera
d679d3fcf5 gx: update cbor to 0.2.3
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-05 13:54:07 +02:00
Jeromy Johnson
038430d9b0 Merge pull request #4194 from ipfs/feat/fuse-fixes
various fixes for /ipfs fuse code
2017-09-06 14:52:13 -07:00
Steven Allen
70d6629940 gx: update go-cid, go-multibase, base32
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-01 17:46:49 -07:00
Jeromy
c5f8a0c11d address code review
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-09-01 14:51:01 -07:00
Jeromy
c8c2921ed2 various fixes for /ipfs fuse code
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-08-31 16:35:17 -07:00
Łukasz Magiera
0f234d76ae dag: add option to specify hash
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Arthur Elliott
1c73f2bc75 fix import order
License: MIT
Signed-off-by: Arthur Elliott <clownpriest@gmail.com>
2017-08-09 15:59:29 -04:00
Arthur Elliott
8c0f4bd5df trivial comment update
License: MIT
Signed-off-by: Arthur Elliott <clownpriest@gmail.com>
2017-08-09 15:42:31 -04:00
Steven Allen
e8f6486a9c gx: update ipldcbor
I previously optimized the IPLD cbor decoder to *not* encode and then re-decode
objects when constructing them with `WrapObject`. Unfortunately, we rely on this
to canonicalize the object before computing the tree/links.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-17 13:09:08 -07:00
Steven Allen
35984c2c88 Change IPFS to use the new pluggable Block to IPLD decoding framework.
Later, we should:

1. Pull the other node formats out of IPFS (at least the raw one).
2. Pull out the decoder registration/management into a `go-ipld` library.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-11 20:35:16 -07:00
Jeromy
cccc6a94a3 update go-multihash and bubble up changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-11 19:27:43 -07:00
Jeromy
1ffb44cd46 make NewSession in the blockservice be a function, not a method
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-05 12:31:34 -07:00
Jeromy
579fd46488 track broadcasted wantlist entries
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-05 10:51:51 -07:00
Jeromy
b1247d3323 WIP: wire sessions up through into FetchGraph
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-05 10:48:28 -07:00
Łukasz Magiera
8ab93aaeb2 Update go-datastore to 1.2.2, go-cid to 0.7.16
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-04 20:18:57 +02:00
Łukasz Magiera
4b8a9a3f9f Update go-datastore to 1.2.1
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-03 20:17:03 +02:00
Łukasz Magiera
0419e3d14a blocks: update go-ipld-cbor
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-01 02:56:22 +02:00
Steven Allen
13636bef50 blocks: gx import go-block-format
And updated related dependencies.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
Steven Allen
bccd4d4e8f blocks: move block format to it's own repo
We need to reference it from outside of this repo.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
zramsay
c5df8f0796 apply the megacheck tool to improve code quality
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-05-31 16:56:11 -04:00
Jeromy
0d3a86e8fc address code review, add comments
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-17 22:09:33 -07:00
Jeromy
8f97786e49 comments and optimize potential rebalances
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-17 21:31:47 -07:00
Jeromy
315849639d implement ipfs pin update
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-17 21:31:47 -07:00
Kevin Atkinson
e23dbd291b Add support for using an alternative hash function with raw nodes.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-14 17:38:26 -04:00
Kevin Atkinson
9350c513f1 Documentation
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:47:48 -04:00
Kevin Atkinson
076d0bd9b1 merkeldag: change SetPrefix param to a pointer and reset the prefix on nil
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
Kevin Atkinson
518adec022 adder: add support for using CidV1
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
Kevin Atkinson
9b58fa773a merkledag: provide better diagnostics when Prefix.Sum fails
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:01:05 -04:00
Jeromy
b15470d548
bubble up updates from go-multihash changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-20 20:28:04 +02:00
Jeromy
31af335dc0 merkledag: limit number of objects in a batch to prevent out of fd issues
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-06 19:27:53 -08:00
Kevin Atkinson
e4bbd246ec Add some documentation on the intended purpose of GetLinks.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-02 05:21:47 -05:00
Kevin Atkinson
c3346ad9d5 Refactor EnumerateChildrenAsync to take in a function to get the links.
For now it is always called with the helper function GetLinksDirect to
avoid any change in behaviour.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-02 05:21:47 -05:00
Kevin Atkinson
6e4fd937fd Refactor EnumerateChildren to avoid need for bestEffort parameter.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-02 05:19:41 -05:00
Kevin Atkinson
cdd29c24a2 Report progress during 'pin add'.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-02-17 16:19:42 -05:00
Jakub Sztandera
67a3a67aa8
Fix formatting in merkledag.go
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-17 08:39:59 +01:00
Jeromy Johnson
e5def26b92 Merge pull request #3687 from ipfs/feat/sub-obj-dag-get
Feat/sub obj dag get
2017-02-16 15:51:34 -08:00
Jeromy Johnson
a2f27e1ac2 Merge pull request #3598 from Voker57/feat/frugal-enumerate
Pass cids instead of nodes around in EnumerateChildrenAsync
2017-02-14 14:29:32 -08:00