Juan Batiz-Benet
b948bd65f9
version bump to 0.3.0
...
This commit includes a poor attempt at a changelog.
2015-04-20 05:10:45 -07:00
Juan Batiz-Benet
dd25a75225
repo: move daemon.lock -> repo.lock
...
The "daemon.lock" was really a repo.lock, as the cli also took it
and the purpose was any process mutex. This is part of the 1-to-2
migration, and has already been handled in
https://github.com/ipfs/fs-repo-migrations/tree/master/ipfs-1-to-2
2015-04-20 02:26:34 -07:00
Juan Batiz-Benet
c1b8d292fb
repo: clean up migration errors
...
Improved the repo migration errors to provide instructions
to the user.
2015-04-20 02:26:34 -07:00
Jeromy
bb7bf81873
put mfsr package back
2015-04-20 02:26:33 -07:00
Jeromy
591cca9507
remove migrations code from go-ipfs, in favor of fs-repo-migrations repo
2015-04-20 02:26:33 -07:00
Jeromy
c419a489e1
make ipfs understand the new migration
2015-04-20 02:26:33 -07:00
Christian Couder
96a22c5bb1
config: change default config dir name to .ipfs
...
This changes .go-ipfs to .ipfs everywhere.
And by the way this defines a DefaultPathName const
for this name.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-04-20 02:25:41 -07:00
Jeromy
f3fbedf312
no longer worry about moving key out of config file
2015-04-20 02:25:41 -07:00
Jeromy
2c79e5ddb5
add 1-to-2 migration program
2015-04-20 02:24:24 -07:00
Tommi Virtanen
24daeec70c
Use flatfs to store objects under /blocks outside of LevelDB
...
WARNING: No migration performed! That needs to come in a separate
commit, perhaps amended into this one.
Migration must move keyspace "/b" from leveldb to the flatfs subdir,
while removing the "b" prefix (keys should start with just "/").
2015-04-20 02:24:23 -07:00
Tommi Virtanen
59aa209164
Let FSRepo Close know explicitly about LevelDB
...
This allows replacing the datastore without needing to write Close
through to every wrapped datastore.
2015-04-20 02:22:46 -07:00
Tommi Virtanen
26cebac6d8
Remove comment referring to old code
...
FSRepo.Open is dead since fdd1cd8dc0
2015-04-20 02:21:49 -07:00
Tommi Virtanen
5cb8d80bb6
LevelDB is no longer "the" datastore, adjust identifiers
2015-04-20 02:21:49 -07:00
Juan Batiz-Benet
7eb4a92aba
0-to-1 fsrepo migration
2015-04-20 02:20:31 -07:00
Juan Batiz-Benet
140cd1fd1b
remove debugerrors
...
We now consider debugerrors harmful: we've run into cases where
debugerror.Wrap() hid valuable error information (err == io.EOF?).
I've removed them from the main code, but left them in some tests.
Go errors are lacking, but unfortunately, this isn't the solution.
It is possible that debugerros.New or debugerrors.Errorf should
remain still (i.e. only remove debugerrors.Wrap) but we don't use
these errors often enough to keep.
2015-04-20 00:35:35 -07:00
Ho-Sheng Hsiao
d90ada9b4e
Added fuse allow_other option
...
ipfs config Mounts.FuseAllowOther --bool true
ipfs daemon --mount
2015-04-02 15:11:27 -07:00
Ho-Sheng Hsiao
bf22aeec0a
Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
...
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
Tommi Virtanen
03bc2ccb9d
Take FSRepo lock way earlier
...
There is no way this was safe before.
Be careful to unlock on the error paths.
2015-03-13 20:29:02 -07:00
Tommi Virtanen
55228dae11
Simplify FSRepo life cycle, it's either open or closed
2015-03-13 20:29:02 -07:00
Tommi Virtanen
384ca525b4
Clean up fsrepo path handling
2015-03-13 20:29:02 -07:00
Tommi Virtanen
431cf1c902
Remove fsrepo refcounting
...
No code attempts to open the same repo multiple times.
Error handling is still buggy, but it's starting to get clearer.
2015-03-13 20:28:51 -07:00
Tommi Virtanen
543adf91f1
Move fsrepo lockfile from global map to struct field
2015-03-13 20:26:42 -07:00
Tommi Virtanen
d5ce5da5fe
Remove fsrepo Datastore refcounting
...
repo.Once now does refcounts on a whole Repo level, returning the same
pointer to multiple Openers. This removes the need for the weird model
of separate FSRepo instances pointing to the same underlying storage,
and the races caused by that.
2015-03-13 20:26:42 -07:00
Tommi Virtanen
c8992f2c1b
repo.OnlyOne tracks open Repos and reuses them
...
This will replace the elaborate refcounting in fsrepo, to make it
easier to maintain.
2015-03-13 20:26:22 -07:00
Tommi Virtanen
fdd1cd8dc0
Remove fsrepo.At, make Open a constructor function
...
Nobody calls At without immediately calling Open.
First step, a mechanical transformation. Cleanups will follow.
2015-03-13 20:19:03 -07:00
Tommi Virtanen
215fed1051
fsrepo.LockedByOtherProcess no longer checks for local opens
...
This is only called from `ipfs` command line tool well before it opens
the repo. The behavior change here causes a false positive if the
current process has already opened the repo. That's a bit late to ask
this question, anyway, and is not expected to have ever triggered.
2015-03-13 19:43:06 -07:00
Tommi Virtanen
e0bee137e9
fsrepo.Remove no longer checks for concurrently open instances
...
The only caller is `ipfs init`, which at that time does not hold a
repository open, and refuses to run on existing repos anyway.
2015-03-13 19:43:04 -07:00
Tommi Virtanen
49732d24fb
Dead code cleanup: repo.IsInitialized
...
The version actually used is in fsrepo, and belongs there as it knows
about fsrepo file layout.
2015-03-11 21:46:30 -07:00
Tommi Virtanen
24a32af3f1
fsrepo components simplification: directly use datastore
2015-03-11 12:55:13 -07:00
Tommi Virtanen
695b2c491a
Rename variable to avoid collision with the path package
2015-03-11 12:37:26 -07:00
Tommi Virtanen
fb39a30c14
fsrepo components simplification: directly use eventlog
2015-03-11 12:14:27 -07:00
Tommi Virtanen
1064d5e01f
Rename variable to avoid collision with the path package
2015-03-11 11:10:13 -07:00
Tommi Virtanen
22b6ee328b
fsrepo components simplification: directly use config
2015-03-11 11:04:33 -07:00
Tommi Virtanen
0d34b026d5
Ensure FSRepo implements Repo
2015-03-11 10:41:02 -07:00
Tommi Virtanen
5baf3c7fc1
Config file is not executable, and must not be world accessible
...
It contains the private key.
2015-03-09 12:03:17 -07:00
Jeromy
5d7a3dfec2
bump version number to 0.2.3
2015-02-26 23:42:03 -08:00
Jeromy
b2b3aa859a
bump version number to 0.2.2
2015-02-26 19:48:07 -08:00
Jeromy
8946dbda2d
bump version number to 0.2.1 after panic fix
2015-02-21 14:36:35 -08:00
Jeromy
69e09d40c5
add version info endpoint to gateway
2015-02-20 11:49:48 -08:00
Brian Tiger Chow
bbc07b6bcc
fix(config) rename variable GCR -> SNR
2015-02-15 06:29:15 -08:00
Brian Tiger Chow
4b4356ff69
add three more supernode routers
2015-02-15 04:41:19 -08:00
Brian Tiger Chow
33f7f48df3
feat(config/supernode) add 5 supernodes
2015-02-15 04:41:18 -08:00
Brian Tiger Chow
c0ca02486b
fix(corerouting) pass transport addr
2015-02-15 04:41:18 -08:00
Brian Tiger Chow
72b934e130
fix(repo/config) Update gcr_servers.go TODO rename
2015-02-15 04:41:17 -08:00
Brian Tiger Chow
974c4842fa
fix(routingd) update port and servers
2015-02-15 04:41:17 -08:00
Brian Tiger Chow
e74b1de155
fix(config/gcr) include protocol
2015-02-15 04:41:17 -08:00
Brian Tiger Chow
86455b81d4
feat(config) add GCR config section
2015-02-15 04:41:17 -08:00
Jeromy
c28944ce6c
have repo tilde expand paths
2015-02-12 05:09:12 +00:00
Matt Bell
a16e0bba2f
repo/config: Added default gateway address to initial config
2015-02-04 16:53:24 -08:00
Brian Tiger Chow
faded48945
fix(config) use max backups to limit number of backups
2015-02-03 17:16:26 -08:00