Commit Graph

7234 Commits

Author SHA1 Message Date
Jeromy Johnson
8eeb693ab3 Merge pull request #3827 from ipfs/golint-1
Make Golint happy in the blocks submodule.
2017-03-24 10:05:31 -07:00
Hector Sanjuan
3b6216b239 Make Golint happy in the blocks submodule.
This has required changing the order of some parameters and
adding HashOnRead to the Blockstore interface (which I have in turn
added to all the wrapper implementations).

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-24 16:46:42 +01:00
Jeromy Johnson
ff997c1f7a Merge pull request #3824 from ipfs/fix/govet/some-error
fix: multiple govet warnings
2017-03-23 20:56:10 -07:00
Jeromy Johnson
ac69697bd9 Merge pull request #3042 from ipfs/feat/hamt-sharding
Implement unixfs sharding
2017-03-23 20:51:52 -07:00
Jeromy
65b9716989 fix go vet issues in hamt sharding PR
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-23 18:01:57 -07:00
Jakub Sztandera
ddbc635425
codeclimate: exclude protobuf generated files
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-24 01:37:45 +01:00
Jakub Sztandera
6546aeade7
fix: multiple govet warnings
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-24 01:02:50 +01:00
Jeromy
c4c665395a add global config switch for sharding
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-23 16:42:31 -07:00
Jeromy Johnson
1d59331b49 Merge pull request #3820 from ipfs/kevina/filestore-util-fix
filestore util: Use a Marshaler instead of PostRun...
2017-03-23 13:21:52 -07:00
Jeromy Johnson
c5bb2e9fc9 Merge pull request #3822 from ipfs/feat/codeclimate
Fix codeclimate
2017-03-23 13:17:25 -07:00
Jakub Sztandera
36435a96e1
Fix codeclimate
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-23 21:14:09 +01:00
Jeromy Johnson
87f8af3577 Merge pull request #3821 from ipfs/feat/codeclimate
misc: try enabling codeclimate
2017-03-23 13:11:50 -07:00
Jakub Sztandera
07738025f0
misc: try enabling codeclimate
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-23 21:11:23 +01:00
Jeromy Johnson
1cf998e800 Merge pull request #3818 from ipfs/fix/dist_get/harder
misc: fix dist_get failing without failing
2017-03-23 10:55:56 -07:00
Kevin Atkinson
ffe9f3e566 filestore util: Use a Marshaler instead of PostRun...
and just output directly to Stderr and Stdout instead of returning
a reader.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-23 13:24:04 -04:00
Jakub Sztandera
dd007b236f
misc: fix dist_get failing without failing
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-23 17:57:54 +01:00
Jeromy Johnson
2cc5ce45b8 Merge pull request #3777 from ipfs/fix/gateway-status-codes
Return 404 Not Found for failed path resolutions
2017-03-22 22:31:54 -07:00
Jeromy Johnson
2de21bc018 Merge pull request #3653 from ipfs/kevina/filestore-util
Basic Filestore Utilties
2017-03-22 21:41:48 -07:00
Jeromy Johnson
a3fc6f18b6 Merge pull request #3805 from ipfs/kevina/repo-init
daemon: use fsrepo.IsInitialized to test for initialization
2017-03-22 20:55:42 -07:00
Jeromy Johnson
4e2e537caa Merge pull request #3809 from ipfs/faster-pin-ls
Fix #3783: Improve IsPinned() lookups for indirect pins
2017-03-22 20:54:51 -07:00
Kevin Atkinson
1eddb60f73 filestore util: doc improvement
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 20:56:35 -04:00
Kevin Atkinson
620b52b2aa filestore util: refactor and clean up tests
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 20:50:22 -04:00
Kevin Atkinson
96269e0256 filestore: Refactor.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 19:55:12 -04:00
Kevin Atkinson
81af0347e9 filestore util: change "???..." to "<corrupt key>"
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 19:55:05 -04:00
Jeromy Johnson
1cd1efd014 Merge pull request #3798 from ipfs/kevina/nat-discovery-config-v2
Add DisableNatPortMap option.
2017-03-22 13:48:02 -07:00
Kevin Atkinson
f7efb34e68 filestore util: Add 'filestore dups' command. Enhance tests.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
1f2e174e6a filestore: use the same codes in ListRes and CorruptReferenceError.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
033c442d32 filestore util: add tests for verifying and listing filestore blocks.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
064bb53884 filestore util: add documentation for 'filestore ls' and 'verify' commands.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
886a6fe166 filestore: be more specific when there is a problem reading the backing file.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
13f617d139 filestore util: allow listing/verifying of individual blocks.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
4bf43047d8 filestore util: basic filestore commands.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Hector Sanjuan
71a7a90f62 Fix #3783: Improve IsPinned() lookups for indirect pins
This avoids revisiting already-searched branches and cut down
the IsPinned() check times considerably when recursive pins
share big underlying DAGs.

A test has been added which double-checks that pinned and unpinned items
lookups respond as expected with shared branches.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-22 20:29:11 +01:00
Kevin Atkinson
28921471db daemon: use fsrepo.IsInitialized to test for initialization
Use fsrepo.IsInitialized to test for initialization instead of just
testing if the directory exists.

Also add test cases for '--init' option, including one the creates an
empty directory.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 04:25:57 -04:00
Jeromy
e8764345d6 fix handling of filestore nodes in mfs during add
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-21 20:19:22 -07:00
Jeromy
62bb7c966d chekc that size input to newHamtShard is a power of two
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-21 20:19:22 -07:00
Jeromy
8d4791c9bb add more docs on hamt
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-21 20:19:22 -07:00
Jeromy
c8af993a8c iterator technique for unixfs dir listing
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-21 20:19:22 -07:00
Jeromy
06fb495df1 fix mfs hamt integration
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-21 20:19:22 -07:00
Jeromy
bb09ffd756 implement an HAMT for unixfs directory sharding
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-21 20:19:22 -07:00
Jeromy Johnson
d7c0a708d6 Merge pull request #3812 from ipfs/fix/update-paper-link
update link to paper in dev.md
2017-03-21 20:13:19 -07:00
Jeromy Johnson
7dee31b736 Merge pull request #3493 from ipfs/feat/coreapi-refinements
Core API refinements and efficiency improvements
2017-03-21 18:57:47 -07:00
Jeromy
749ba2ffac update link to paper in dev.md
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-21 18:56:04 -07:00
Jeromy Johnson
21072a5f81 Merge pull request #3712 from ipfs/kevina/more-robust-gc
More Robust GC
2017-03-21 17:16:37 -07:00
Jeromy Johnson
d065593715 Merge pull request #3804 from hoenirvili/multipart-fix
test(commands): fix EOF failure with Multipart.Read
2017-03-21 11:01:46 -07:00
Giulitti Salvatore
3d21c2ff6e test(commands): fix EOF failure with Multipart.Read
License: MIT
Signed-off-by: hoenirvili <hoenirvili@gmail.com>
2017-03-21 11:20:12 +02:00
Jeromy Johnson
7d02274661 Merge pull request #3806 from ipfs/lgierth-patch-1
commands: improve name and key helptexts
2017-03-20 21:07:44 -07:00
Lars Gierth
0e68ffaaf0 commands: improve name and key helptexts
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-21 03:42:53 +01:00
Kevin Atkinson
d39d9ed60b gc: address CR comments
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-20 14:46:02 -04:00
Kevin Atkinson
f66ca2ff24 gc: continue to use cmds.ChannelMarshaler
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-18 21:30:32 -04:00