3

是否有任何工具可以检查现有的 squashfs 图像并找出每个文件的压缩率?

如果它帮助我可以估计一个巨大的可执行文件中静态链接符号的闪存使用情况,则可以加分。

4

2 回答 2

3

7zip 程序可以提供信息。使用7z l -slt squasfsfile并获得每个文件的机器可读列表,包括原始和打包(压缩)大小。

于 2017-01-18T01:11:32.797 回答
1

My ruby squashfs implementation makes this pretty easy to implement. Check out this revision: https://github.com/vasi/squash.rb/tree/9bac822ac08892a9764fb92314cad4066742ce06

Note that squashfs bunches up small files (and the tail ends of large files) and compresses these 'fragments' together. It's impossible to figure out exactly how much each file contributes to these bunches, so I estimated that part.

于 2012-05-26T00:05:07.840 回答