ckolivas / lrzip

Long Range Zip

Home Page:http://lrzip.kolivas.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pretty Format lrzip -i

pete4abw opened this issue · comments

lrzip -i|vi|vvi output is difficult to read.

Using locales, formatted output is achieved. The attached files and patch enhance readability of info output. Some examples below. These changes are a part of lrzip-next, including the ability to show info for encrypted files.

Current Info Output

linux-5.13.tar.lrz:
lrzip version: 0.6 file
Compression: rzip + lzma
Decompressed file size: 1429657600
Compressed file size: 202925709
Compression ratio: 7.045
MD5 used for integrity testing
MD5: 45d8fe507494dfd5542b49f66216754a

Pretty Format Info Output

Summary
=======
File: linux-5.13.tar.lrz
lrzip version: 0.6 

  Compression Method: rzip + lzma

  Decompressed file size:  1,429,657,600
  Compressed file size:      202,925,709
  Compression ratio:               7.045x

  MD5 Checksum: 45d8fe507494dfd5542b49f66216754a

Current Info Max Verbose Output

Detected lrzip version 0.6 file.
Rzip chunk 1:
Chunk byte width: 4
Chunk size: 1429657600
Stream: 0
Offset: 30
Block   Comp    Percent Size
1       lzma    57.9%   640170 / 1106384        Offset: 171975904       Head: 0
Stream: 1
Offset: 30
Block   Comp    Percent Size
1       lzma    16.9%   25375856 / 149774374    Offset: 56      Head: 25375895
2       lzma    20.5%   30684677 / 149774374    Offset: 25375925        Head: 56060585
3       lzma    19.4%   29066928 / 149774374    Offset: 56060615        Head: 85127526
4       lzma    19.3%   28848804 / 149774374    Offset: 85127556        Head: 113976343
5       lzma    14.7%   22059317 / 149774374    Offset: 113976373       Head: 136035673
6       lzma    5.2%    7803322 / 149774374     Offset: 136035703       Head: 143839008
7       lzma    18.8%   28136853 / 149774374    Offset: 143839038       Head: 172616057
8       lzma    24.4%   30309593 / 124318063    Offset: 172616087       Head: 0
Rzip compression: 82.1% 1173845065 / 1429657600
Back end compression: 17.3% 202925520 / 1173845065
Overall compression: 14.2% 202925520 / 1429657600
linux-5.13.tar.lrz:
lrzip version: 0.6 file
Compression: rzip + lzma
Decompressed file size: 1429657600
Compressed file size: 202925709
Compression ratio: 7.045
MD5 used for integrity testing
MD5: 45d8fe507494dfd5542b49f66216754a

Pretty Format Info Max Verbose Output

Detected lrzip version 0.6 file.
Rzip chunk:       1
Chunk byte width: 4
Chunk size:       1,429,657,600
Stream: 0
Offset: 30
Block   Comp    Percent        Comp Size /     UComp Size            Offset :           Head
1       lzma     57.9%           640,170 /      1,106,384       171,975,904 :              0
Stream: 1
Offset: 43
Block   Comp    Percent        Comp Size /     UComp Size            Offset :           Head
1       lzma     16.9%        25,375,856 /    149,774,374                56 :     25,375,895
2       lzma     20.5%        30,684,677 /    149,774,374        25,375,925 :     56,060,585
3       lzma     19.4%        29,066,928 /    149,774,374        56,060,615 :     85,127,526
4       lzma     19.3%        28,848,804 /    149,774,374        85,127,556 :    113,976,343
5       lzma     14.7%        22,059,317 /    149,774,374       113,976,373 :    136,035,673
6       lzma      5.2%         7,803,322 /    149,774,374       136,035,703 :    143,839,008
7       lzma     18.8%        28,136,853 /    149,774,374       143,839,038 :    172,616,057
8       lzma     24.4%        30,309,593 /    124,318,063       172,616,087 :              0

Summary
=======
File: linux-5.13.tar.lrz
lrzip version: 0.6 

  Stats         Percent       Compressed /   Uncompressed
  -------------------------------------------------------
  Rzip:          82.1%     1,173,845,065 /  1,429,657,600
  Back end:      17.3%       202,925,520 /  1,173,845,065
  Overall:       14.2%       202,925,520 /  1,429,657,600

  Compression Method: rzip + lzma

  Decompressed file size:  1,429,657,600
  Compressed file size:      202,925,709
  Compression ratio:               7.045x

  MD5 Checksum: 45d8fe507494dfd5542b49f66216754a

0001-Pretty-format-info-output.patch.gz
lrzip-i.txt.gz
lrzip-vi.txt.gz
lrzip-vvi.txt.gz
lrzip-pp-i.txt.gz
lrzip-pp-vi.txt.gz
lrzip-pp-vvi.txt.gz

Applied to master, thanks.