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

Implement LazyReader for SquashFS writing #58

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

aleasims
Copy link
Collaborator

@aleasims aleasims commented Feb 26, 2025

Changes

SquashFS now stores LazyOpen instead of std::fs::File for each source file. Thus source file will be opened only on read() and there will be no file descriptor exhaustion.

Note

There is no performance affect as far as I can tell.

This is done to avoid file descriptor exhaustion when writing big filesystems.
@aleasims aleasims added the bug Something isn't working label Feb 26, 2025
@aleasims aleasims self-assigned this Feb 26, 2025
@aleasims aleasims linked an issue Feb 26, 2025 that may be closed by this pull request
@aleasims aleasims requested review from tuommaki and trusch February 26, 2025 12:12
@aleasims aleasims marked this pull request as ready for review February 26, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error: gvltctl build throws "Too many open files (os error 24)"
1 participant