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

Add option to show mksquashfs/unsquashfs progress with more details than percentage #301

Open
afbjorklund opened this issue Feb 15, 2025 · 1 comment · May be fixed by #302
Open

Add option to show mksquashfs/unsquashfs progress with more details than percentage #301

afbjorklund opened this issue Feb 15, 2025 · 1 comment · May be fixed by #302

Comments

@afbjorklund
Copy link

Besides the regular output, there is the -percentage to show integer percentages for dialog --gauge.

But sometimes mksquashfs is used from another program, that wants to show more detailed progress.

So there could be another option like -bytes, that would just show the current/max estimated byte size...

Then those tools can parse that output, and show it in their regular format like github.com/vbauerster/mpb


-percentage

7
8
10
14
18
31
61
100

-bytes

26738688/381943808
33554432/381943808
39583744/381943808
53739520/381943808
70909952/381943808
120979456/381943808
235143168/381943808
381943808/381943808
@afbjorklund afbjorklund linked a pull request Feb 15, 2025 that will close this issue
@afbjorklund
Copy link
Author

afbjorklund commented Feb 15, 2025

Then again, the blocks * block_size is quite different from the resulting image size.

Maybe that would be confusing, and better to only show the blocks* (like -progress)

* or inodes + blocks, in the case of unsquashfs

Going with bytes for now, it is true in some sense.

@afbjorklund afbjorklund changed the title Add option to show progress with more details than percentage Add option to show mksquashfs progress with more details than percentage Feb 15, 2025
@afbjorklund afbjorklund changed the title Add option to show mksquashfs progress with more details than percentage Add option to show mksquashfs/unsquashfs progress with more details than percentage Feb 16, 2025
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 a pull request may close this issue.

1 participant