-
Notifications
You must be signed in to change notification settings - Fork 266
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]: Better progress for compressed archives #985
Comments
Unfortunately gzip only stores the uncompressed filesize modulo 4GB; so if you have a 5GB disk-image compressed with gzip, |
Well I feel like the bigger question is whether the libarchive interfaces expose that functionality for you already, and it could relatively easily implemented or not. |
Not necessarily - you might have a 5GB mostly-empty disk image which compresses down to 750MB, or you might have a 1GB not-very-compressible disk image which compresses down to 750MB. In both cases |
Okay, I don't really mean to be argumentative, but the current state is such that the progress is based on the compressed size? We're only talking about the progress, right? Not some kind of validation for the user. Out of curiosity, I downloaded the |
Is your feature request related to a problem? Please describe.
The progress output when writing compressed images files quickly progresses to 99% and then pauses there while the rest of the disk is being written.
Describe the solution you would like to see implemented
I've seen this issue comment noting that this is expected behavior for compressed archives. On the other hand, I get the correct uncompressed size from the output of both
gzip -l my_os.img.gz
andzstd -vl my_os.img.zstd
, and it seems that rpi imager could use the equivalent functionality...Yeah, I know, I'm a programmer too. It's easy to say in one sentence of english. Implementing is another thing entirely. 😄
Describe alternatives you've considered
Live with uninformative progress display, or decompress it first. 😒
Additional context
None
Version
1.9.0
The text was updated successfully, but these errors were encountered: