Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fsrepo: Allow for custom datastore path #2121

Closed
wants to merge 1 commit into from

Conversation

travisperson
Copy link
Member

Gives the user the option to set a datastore flag to change where the leveldb and flatfs database live.

Addresses #2117

I might rewrite this a bit to change the fsrepo checking and such around to better suit this option. This is slightly hacked together due to the way the original code was written. It made it hard to pipe through a few things. Some functions might need to be rewritten. I'm mostly not too keen on the random blank strings and passing nil around when the config doesn't exist yet.

Gives the user the option to set a `datastore` flag to change where
the leveldb and flatfs database live.
@GitCop
Copy link

GitCop commented Dec 23, 2015

There were the following issues with your Pull Request

  • Commit: b40cc8e
    • Invalid signoff. Commit message must end with
      License: MIT
      Signed-off-by: .* <.*>

Guidelines and a script are available to help. Your feedback on GitCop is welcome on this issue.


This message was auto-generated by https://gitcop.com

@jbenet jbenet added the backlog label Dec 23, 2015

}

if !util.FileExists(leveldbPath) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there also be a check for the flatfs directory during all this initialization?

@travisperson
Copy link
Member Author

So this changed the paths a bit

Previous

~/.ipfs $ ls *
config  version

blocks:
12200661/  12201ff8/  122052c6/  122065c1/  12208b5c/  1220929a/  1220d247/  1220fdb6/
1220120f/  122043b9/  12205994/  1220895c/  122090c0/  1220a52c/  1220e3b0/

datastore:
000002.ldb  000003.log  CURRENT  LOCK  LOG  LOG.old  MANIFEST-000004

logs:

Now:

config  version

datastore:
blocks/  datastore/

logs:

So ya, going to have to rework a few things and clean this up. Not the simple pipe through I was hoping for.

@travisperson
Copy link
Member Author

I'm going to fix this up more

@jbenet jbenet removed the backlog label Dec 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants