Commit Graph

7212 Commits

Author SHA1 Message Date
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 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
Kevin Atkinson
da95e9f929 Add DisableNatPortMap option.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-18 18:50:10 -04:00
Jeromy Johnson
646dbde318 Merge pull request #3744 from kpcyrd/feat/docker
docker: Automatically fix permissions
2017-03-18 13:13:41 -07:00
Jeromy Johnson
988b20760f Merge pull request #3795 from jefft0/fix-CHANGELOG-FilestoreEnabled
CHANGELOG: Fix config command for FilestoreEnabled .
2017-03-18 13:12:24 -07:00
Jeff Thompson
ca6b1e870b CHANGELOG: Fix config command for FilestoreEnabled .
License: MIT
Signed-off-by: Jeff Thompson <jefft0@gmail.com>
2017-03-18 01:13:44 -07:00
Lars Gierth
807ffb9141 commands/dns: return NotFound error for failed resolutions
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 04:16:36 +01:00
Lars Gierth
9e4800d40a gateway: simplify error responses, switch to 404
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 04:10:28 +01:00
Lars Gierth
ee45b8d32f coreapi: make the interfaces path centric
The new coreiface.Path maps a path to the cid.Cid
resulting from a full path resolution.

The path is internally represented as a go-ipfs/path.Path,
but that doesn't matter to the outside.

Apart from the path-to-CID mapping, it also aims to hold all
resolved segment CIDs of the path. Right now it only exposes
Root(), and only for flat paths a la /ipfs/Qmfoo. In other cases,
the root is nil.

In the future, resolution will internally use
go-ipfs/path.Resolver.ResolvePathComponents and thus always return
the proper resolved segments, via Root(), or a future Segments() func.

- Add coreiface.Path with Cid() and Root().
- Add CoreAPI.ResolvePath() for getting a coreiface.Path.
- All functions now expect and return coreiface.Path.
- Add ParsePath() and ParseCid() for constructing a coreiface.Path.
- Add coreiface.Node and Link which are simply go-ipld-node.Node and Link.
- Add CoreAPI.ResolveNode() for getting a Node from a Path.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 03:47:59 +01:00
Lars Gierth
e260d2fd06 coreapi: smarter way of dealing with the different APIs
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 02:35:17 +01:00
Jeromy Johnson
6efa429a99 Merge pull request #3787 from ipfs/fix/make/check-path
make: readd the path check functionality
2017-03-16 10:59:28 -07:00
Jeromy Johnson
183d005b6b Merge pull request #3782 from ipfs/fix/bloom/put-no-cache
fix: remove bloom filter check on Put call in blockstore
2017-03-16 10:00:11 -07:00
Jeromy
beebc85132 version bump, 0.4.8-dev
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-15 19:39:43 -07:00
Jeromy
f76b48dfa0 Ipfs 0.4.7
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-15 18:47:37 -07:00
Jakub Sztandera
5ae31f4a2a
make: readd the path check functionality
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-15 13:12:28 +01:00
Jakub Sztandera
9c194aa7e2
fix: remove bloom filter check on Put call in blockstore
To prevent put we need to have conclusive information if item is
contained in the repo, bloom filter won't give this information.
It only says if it is for sure not contained.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-14 00:57:13 +01:00
Jeromy Johnson
174a566ae6 Merge pull request #3778 from ipfs/feat/0.4.7-changelog
Ipfs 0.4.7-rc1, Changelog and version bump
2017-03-11 13:11:38 -08:00
Jeromy Johnson
0e2e627f71 Merge pull request #3776 from ipfs/fix/make-symlinked
make: fix build when symlinked into GOPATH
2017-03-11 12:34:27 -08:00
Jeromy
7a7545c06d Ipfs 0.4.7-rc1, Changelog and version bump
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-10 23:23:38 -08:00
Lars Gierth
b54df01dbe make: fix build when symlinked into GOPATH
In workspace setups that have the source tree symlinked into GOPATH,
the `go list `command wouldn't recognize that we're technically within GOPATH,
because `pwd` doesn't look like it.

For example

	/home/user/go/src/github.com/ipfs/go-ipfs
	=> /home/user/go/ipfs/go-ipfs

produces the import path

	_/home/user/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-random/random

which is not within GOPATH.

We get around this by using fully-qualified import paths instead:
starting in github.com/ipfs/go-ipfs/ instead of ./

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-11 04:15:09 +01:00
Jeromy Johnson
eecc766327 Merge pull request #3328 from djdv/win-driveroot-fix
add: [Windows] Drive root parse fix
2017-03-10 14:46:04 -08:00
Jeromy Johnson
56bbcc9f16 Merge pull request #3774 from ipfs/feat/docs/80-chars
Add 80 columns mans tests
2017-03-10 14:42:38 -08:00
Jeromy Johnson
05d35d19fd Merge pull request #3770 from ipfs/feat/add/superquiet
Add ipfs add --quieter
2017-03-10 14:41:07 -08:00
Jakub Sztandera
5489025210
test: add test for checking if commands mans lengths are shorter than 80
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-10 19:05:34 +01:00