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

repo: add ipfs repo stat command #2289

Closed
wants to merge 4 commits into from
Closed

repo: add ipfs repo stat command #2289

wants to merge 4 commits into from

Conversation

atomgardner
Copy link
Contributor

A step in the direction of #1744.

Line 134 probably needs the attention of a Go pro.

@RichardLitt
Copy link
Member

@whyrusleeping Can you ping me on all of these 'add commands to ipfs' PRs? I'll need to update the API when they happen.


var repoStatCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "Print status of the local repo",
Copy link
Contributor

Choose a reason for hiding this comment

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

'.' missing.

@GitCop
Copy link

GitCop commented Feb 5, 2016

There were the following issues with your Pull Request

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

We ask for a few features in the commit message for Open Source licensing hygiene and commit message clarity.
git commit --amend can often help you quickly improve the commit message.
Guidelines and a script are available to help in the long run.
Your feedback on GitCop is welcome on this issue.


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

}

count := uint64(0)
for range allKeys {
Copy link
Member

Choose a reason for hiding this comment

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

hrm... this is awkward. I think this is actually the best way of doing this, short of traversing the directory and listing all the files

@whyrusleeping
Copy link
Member

I like this, although it takes an unfortunately long time on my repo with 500GB worth of content. Nothing is the fault of your code, thats just things we need to optimize on the flatfs datastore side. I'll give this another lookover tomorrow, but i think getting some feedback from @rht would be good on this, he's done a lot of work in this area.

License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
@RichardLitt
Copy link
Member

@tomgg Why did you close this?

@whyrusleeping
Copy link
Member

because his code got merged in #2430, @diasdavid finished off the PR for him and added a couple tests.

@atomgardner atomgardner deleted the easy/1744 branch March 13, 2016 15:41
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.

5 participants