-
Notifications
You must be signed in to change notification settings - Fork 58
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
[Feature Request] Create DWARFS Archive From TAR/STDIN #181
Comments
Hi and thanks for your suggestion. I believe something like this came up already in an earlier discussion, so you're not alone. :) I agree this would be a nice feature, however it's definitely not trivial to implement. At the moment, I'll keep this open, but please don't expect any progress anytime soon. |
For plain TAR files you could read in the metadata and memory map the files as they are in the archive, they are back to back. As for using stdin or compressed archives it might be possible to just allocate anonymous maps as you go. I understand that these are potentially quite invasive changes to make, I'm just trying to float some ideas. |
Yeah, plain TAR would probably be easy enough, but usually you have |
I understand that it isn't super simple, at the minimum plain old TAR would be nice because that alone would eliminate the need for root in some edge cases like I described. |
I'm still not sure whether it should be done, but at least this would seem like a solution that wouldn't increase the complexity of the code base too much. |
This is a very minor thing, but it would be super useful to add a way to create DWARFS images directly from tar files or from the -O/--to-stdout flag from TAR.
(Sorry if I missed this, I didn't see a mention of it in the readme or a quick search)
Edit:
A bit more explanation for this, as it's likely in order.
If you create a dwarfs image of something that has root owned 600 files as well as non-root owned files you would need root to create the DWARFS archive.
The text was updated successfully, but these errors were encountered: