From 53daecc19a9b6d921d306efaae66b18996b00360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20V=C3=A4th?= Date: Wed, 15 Nov 2017 10:10:51 +0100 Subject: [PATCH] Default to zstd --- ChangeLog | 8 ++++++++ bin/squashmount | 11 ++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index a9a51c2..94e583c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ # ChangeLog for squashmount +*squashmount-17.0.0 + Martin Väth : + - IMPORTANT: New default for COMPRESSION is zstd. + This requires squashfs-tools-4.3.1_alpha20171114 or newer. Moreover: + zstd must be enabled for squashfs when you use the new default! + This is possible only with linux-4.14 or newer or with + squashfuse-0.1.101_alpha20170917 or newer. + *squashmount-16.1.0 Martin Väth : - Document zstd on squashmount --man diff --git a/bin/squashmount b/bin/squashmount index 3a584fd..5d36a36 100755 --- a/bin/squashmount +++ b/bin/squashmount @@ -1,6 +1,6 @@ #!/usr/bin/env perl BEGIN { require 5.022 } -package Squashmount v16.1.0; +package Squashmount v17.0.0; use strict; use warnings; @@ -1449,7 +1449,7 @@ B The working directory required by overlay and overlayfs, set according to the same rules as for B. If you want to use current versions of overlay or overlayfs -(kernel 3.15 or newer) this B be on the same filesystem as B. +(linux-3.15 or newer) this B be on the same filesystem as B. If you do not want to use B, set B<$obsolete_overlayfs = 'force'> and use only overlayfs (not overlay). @@ -1653,9 +1653,10 @@ If the value is empty, no B<-comp> parameter is passed, that is, the default of the installed B is chosen (which is usually B but might depend on your version of B). The default of B (that is, if undefined or not explicitly set) -is B; note that before B this was B. +is B; note that before B-17.0.0/10.0.0 this was +B/B. Note also that B/B support requires linux-4.14/3.19 or newer -(or squashfuse-0.1.101_alpha20170917/squash-0.1.100_alpha20140523 or newer). +(or squashfuse-0.1.101_alpha20170917/0.1.100_alpha20140523 or newer). =item B @@ -3353,7 +3354,7 @@ sub mksquashfs_options { defined($mksquash_symbols->{'i'})); push(@$options, '-progress') if(defined($mksquash_symbols->{'p'})); push(@$options, '-always-use-fragments') if(&is_nonempty($user_config->{'DEFAULT_FRAGMENTS'})); - my $comp = (defined($compression) ? lc($compression) : 'lz4'); + my $comp = (defined($compression) ? lc($compression) : 'zstd'); my $compopt = $user_config->{'COMPOPT_' . uc($comp)}; unless(defined($compopt)) { $compopt = ['-Xcompression-level', '22'] if($comp eq 'zstd');