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

Efficient "repo stat" (DiskUsage) and "--size-only" flag #5010

Merged
merged 4 commits into from
Jul 16, 2018

Commits on Jul 8, 2018

  1. Feat: use datastore.DiskUsage() and add --size-only to "repo stat"

    This makes use of the PersistentDatastore DiskUsage method to
    obtain the Repo's storage usage (GetStorageUsage()).
    
    Additionally, the --size-only flag has been added to the
    "ipfs repo stat" command. This avoids counting the number of objects
    in the repository and returns faster.
    
    License: MIT
    Signed-off-by: Hector Sanjuan <hector@protocol.ai>
    hsanjuan committed Jul 8, 2018
    Configuration menu
    Copy the full SHA
    79b388c View commit details
    Browse the repository at this point in the history
  2. Sharness: add tests for ipfs repo stat --size-only

    License: MIT
    Signed-off-by: Hector Sanjuan <hector@protocol.ai>
    hsanjuan committed Jul 8, 2018
    Configuration menu
    Copy the full SHA
    37d4989 View commit details
    Browse the repository at this point in the history
  3. RepoStat: address review comments

    License: MIT
    Signed-off-by: Hector Sanjuan <hector@protocol.ai>
    hsanjuan committed Jul 8, 2018
    Configuration menu
    Copy the full SHA
    9d88d2c View commit details
    Browse the repository at this point in the history
  4. remove debug print statement

    License: MIT
    Signed-off-by: Hector Sanjuan <hector@protocol.ai>
    hsanjuan committed Jul 8, 2018
    Configuration menu
    Copy the full SHA
    9c8d994 View commit details
    Browse the repository at this point in the history