diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-06-04 04:29:04 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-06-04 04:29:04 +0200 |
commit | ad73b9440422c06805764da6058ebeb6d41a4f04 (patch) | |
tree | e2f1c315c7b04d825347772e8a4180650e49ea3e /lib/common | |
parent | a07a965967f3ba44a74528f607d514502b928b17 (diff) |
lzma compressor: add support for the "extreme" flag
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common')
-rw-r--r-- | lib/common/comp_opt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/common/comp_opt.c b/lib/common/comp_opt.c index 323fa4f..c279f1e 100644 --- a/lib/common/comp_opt.c +++ b/lib/common/comp_opt.c @@ -34,6 +34,10 @@ static const flag_t xz_flags[] = { { "extreme", SQFS_COMP_FLAG_XZ_EXTREME }, }; +static const flag_t lzma_flags[] = { + { "extreme", SQFS_COMP_FLAG_LZMA_EXTREME }, +}; + static const flag_t lz4_flags[] = { { "hc", SQFS_COMP_FLAG_LZ4_HC }, }; @@ -131,6 +135,10 @@ int compressor_cfg_init_options(sqfs_compressor_config_t *cfg, flags = xz_flags; num_flags = sizeof(xz_flags) / sizeof(xz_flags[0]); break; + case SQFS_COMP_LZMA: + flags = lzma_flags; + num_flags = sizeof(lzma_flags) / sizeof(lzma_flags[0]); + break; case SQFS_COMP_LZ4: flags = lz4_flags; num_flags = sizeof(lz4_flags) / sizeof(lz4_flags[0]); |