[PATCH] Implement -k (keep input files) for various (de)compressors.

Denys Vlasenko vda.linux at googlemail.com
Thu Jun 15 16:11:03 UTC 2017


On Fri, Jun 2, 2017 at 3:40 PM, Ari Sundholm <ari at tuxera.com> wrote:
> This is generally useful in many contexts where the normal utilities are
> not available and compressed files are being used a lot.
>
> Bloat-o-meter:
>
> function                                             old     new   delta
> .rodata                                           158465  158527     +62
> packed_usage                                       31636 31693     +57
> bbunpack                                             780     804     +24
> gzip_main                                            288     306     +18
> lzop_main                                            101     118     +17
> bzip2_main                                           138     153     +15
> unxz_main                                             86      96     +10
> unlzma_main                                           87      97     +10
> gunzip_main                                           82      92     +10
> bunzip2_main                                          71      81     +10
> do_lzo_compress                                      432     434      +2
> ------------------------------------------------------------------------------
> (add/remove: 0/0 grow/shrink: 11/0 up/down: 235/0)            Total: 235 bytes

I implemented this by using a bit in option_mask32.

Please try current git.


More information about the busybox mailing list