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

export-tar: support sparse files #2562

Open
enkore opened this issue May 24, 2017 · 2 comments
Open

export-tar: support sparse files #2562

enkore opened this issue May 24, 2017 · 2 comments

Comments

@enkore
Copy link
Contributor

enkore commented May 24, 2017

https://www.gnu.org/software/tar/manual/html_node/PAX-1.html

This is only possible in a fairly limited fashion, because the sparse block mapping is prepended to the file contents. Therefore, runs of zeroes cannot be folded while writing the file contents. Instead, zero chunks (of the maximum length allowed by the archive.metadata[chunker_params], as generated by the chunker) can be picked from the chunk ID list before processing the main file contents. Then, the appropriate tar block can be emitted, then the sparse mapping. Only after that the actual file contents are processed.

This is really rather complex to implement; unlikely without external funding, I guess.

@ThomasWaldmann
Copy link
Member

related to #14

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Apr 2, 2022

see also #5830, basic PAX format support is there, sparse support still TODO.

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

No branches or pull requests

2 participants