Skip to content
This repository has been archived by the owner. It is now read-only.

Why not import/export tar archives to/from unixfs? #59

Closed
Stebalien opened this issue Oct 5, 2015 · 5 comments
Closed

Why not import/export tar archives to/from unixfs? #59

Stebalien opened this issue Oct 5, 2015 · 5 comments
Labels

Comments

@Stebalien
Copy link

Stebalien commented Oct 5, 2015

Tar is just a portable read-only filesystem format so why does ipfs tar add/cat import into and export from a special tar dag instead of just using unixfs (also a portable read-only filesystem format)?

@jbenet
Copy link
Contributor

jbenet commented Oct 5, 2015

Because that way you get really good dedup within tars. (and can even mount tars). it's an example datastructure. this is pre-work towards car, an archive fmt we're making

@Stebalien
Copy link
Author

Stebalien commented Oct 5, 2015

Sorry, my question was unclear. Why not extract the tar into unixfs. That is, why write another merkeldag format for read-only filesystems when you already have one.

@Stebalien
Copy link
Author

Stebalien commented Oct 5, 2015

Is this to work around the lack of metadata (permissions etc.) storage in unixfs?

@jbenet
Copy link
Contributor

jbenet commented Oct 5, 2015

Is this to work around the lack of metadata (permissions etc.) storage in unixfs?

precisely-- it was a quick hack meanwhile we work on unixfs. but it ended up being pretty useful

it's also useful to have native support for tars, so that in the future we can import regular unix filesystems and yet dedup tars and look into them. And still be able to reproduce the exact same fs on the way out.

@madavieb
Copy link

madavieb commented May 23, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants