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

make the tar writer handle sharded ipfs directories #4873

Merged
merged 5 commits into from
Mar 25, 2018
Merged

Conversation

Stebalien
Copy link
Member

Makes ipfs get work on sharded directories.

fixes #4871

makes ipfs get work on sharded directories

fixes #4871

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Unfortunately, fixing this would require breaking the API.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
@Stebalien Stebalien requested a review from Kubuxu as a code owner March 23, 2018 23:26
@ghost ghost assigned Stebalien Mar 23, 2018
@ghost ghost added the status/in-progress In progress label Mar 23, 2018
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

👍

case unixfspb.Data_HAMTShard:
// We need a streaming ls API for this.
res.SetError(fmt.Errorf("cannot list large directories yet"), cmdkit.ErrNormal)
return
Copy link

Choose a reason for hiding this comment

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

I think it would be okay to have this without a streaming ls. It's just gonna take its time to run, just like dir-listings on the gateway for sharded directories.

The streaming ls is an optimization (an important one nevertheless).

Copy link
Member Author

Choose a reason for hiding this comment

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

Fine by me (although let's fix that in a different PR #4874).

@Stebalien Stebalien added RFM and removed status/in-progress In progress labels Mar 25, 2018
Copy link
Member

@daviddias daviddias left a comment

Choose a reason for hiding this comment

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

@whyrusleeping can @Stebalien merge this one asap? Thanks!

@whyrusleeping
Copy link
Member

I'll review it when I get back to my computer.

@whyrusleeping whyrusleeping merged commit a98a4f4 into master Mar 25, 2018
@whyrusleeping whyrusleeping deleted the fix/4871 branch March 25, 2018 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ipfs get doesn't work with sharded directories
3 participants