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

first pass at a tar importer #1680

Merged
merged 3 commits into from
Sep 11, 2015
Merged

first pass at a tar importer #1680

merged 3 commits into from
Sep 11, 2015

Conversation

whyrusleeping
Copy link
Member

Allows the importing of tar files into ipfs, provides greater dedupe than simple using 'ipfs add' on the tar file. Also adds a command to export a tar back out from the added hash

License: MIT
Signed-off-by: Jeromy jeromyj@gmail.com

@jbenet jbenet added the status/in-progress In progress label Sep 10, 2015
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
return nil, err
}

err = root.AddNodeLinkClean(h.Name, header)
Copy link
Member

Choose a reason for hiding this comment

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

so the root is going to get massive (thousands of links). we dont have sharding yet, so maybe this should work like the path bubble-up

@jbenet
Copy link
Member

jbenet commented Sep 10, 2015

this is fantastic

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
@whyrusleeping
Copy link
Member Author

@jbenet updated

@jbenet
Copy link
Member

jbenet commented Sep 10, 2015

@whyrusleeping LGTM. maybe a roundtrip test? use random_files -> tar c -> ipfs tar -> diff

@whyrusleeping
Copy link
Member Author

sure thing!

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
@whyrusleeping
Copy link
Member Author

roundtrip test away!

jbenet added a commit that referenced this pull request Sep 11, 2015
first pass at a tar importer
@jbenet jbenet merged commit 4a4e969 into master Sep 11, 2015
@jbenet jbenet removed the status/in-progress In progress label Sep 11, 2015
@jbenet jbenet deleted the feat/tar-fmt branch September 11, 2015 00:30
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.

2 participants