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

mutate: stream tar output from sqfs2tar #59

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

dtrudg
Copy link
Member

@dtrudg dtrudg commented Jun 12, 2024

Stream the tar output from sqfs2tar when performing a SquashFS to TAR layer conversion. This removes the need for one temporary file.

Although intended, we cannot remove the SquashFS temporary file by using a named pipe for input to sqfs2tar. Due to the structure of SquashFS filesystems, sqfs2tar re-reads portions of the input and cannot work from a named pipe that is streaming input.

Temporary directory is also now passed by option, per comments in review of #52.

Closes #57

@dtrudg dtrudg self-assigned this Jun 12, 2024
@dtrudg dtrudg force-pushed the tar-conv-streaming branch 2 times, most recently from c5c22f1 to fcdc737 Compare June 12, 2024 08:48
Stream the tar output from sqfs2tar when performing a SquashFS to TAR
layer conversion. This removes the need for one temporary file.

Although intended, we cannot remove the SquashFS temporary file by using
a named pipe for intput to sqfs2tar. Due to the structure of SquashFS
filesystems, sqfs2tar re-reads portions of the input and cannot work
from a named pipe that is streaming input.

Temporary directory is also now passed by option, per comments in review
of sylabs#52.

Closes sylabs#57
@dtrudg dtrudg force-pushed the tar-conv-streaming branch from fcdc737 to d7e6562 Compare June 12, 2024 08:50
@dtrudg dtrudg marked this pull request as ready for review June 12, 2024 08:55
@dtrudg dtrudg requested a review from tri-adam June 12, 2024 08:55
Copy link
Member

@tri-adam tri-adam left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@dtrudg dtrudg merged commit c69ba8a into sylabs:main Jun 13, 2024
10 checks passed
@dtrudg dtrudg deleted the tar-conv-streaming branch June 13, 2024 15:24
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.

techdebt: stream output from sqfs2tar
2 participants