mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-16 15:58:06 -04:00
fix(rewrite_filesystem): only recompress blocks if actually requested
This commit is contained in:
parent
48f423504c
commit
4538a8a3c8
@ -122,9 +122,9 @@ void rewrite_filesystem(logger& lgr, dwarfs::reader::filesystem_v2 const& fs,
|
|||||||
switch (s->type()) {
|
switch (s->type()) {
|
||||||
case section_type::BLOCK: {
|
case section_type::BLOCK: {
|
||||||
std::optional<fragment_category::value_type> cat;
|
std::optional<fragment_category::value_type> cat;
|
||||||
bool recompress_block{true};
|
bool recompress_block{opts.recompress_block};
|
||||||
|
|
||||||
if (opts.recompress_block) {
|
if (recompress_block) {
|
||||||
auto catstr = fs.get_block_category(block_no);
|
auto catstr = fs.get_block_category(block_no);
|
||||||
|
|
||||||
if (catstr) {
|
if (catstr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user