svn commit: r316980 - head/contrib/zstd/programs

Baptiste Daroussin bapt at freebsd.org
Wed Dec 6 08:37:38 UTC 2017


On Tue, Dec 05, 2017 at 05:17:22PM -0800, Conrad Meyer wrote:
> Ping.  Please revert this change.  If you want zstd to behave this
> way, pursue it upstream first.

This is planned, for now I first need to modify newsyslog to accept more
arguments for the compression program, then I'll switch back zstd to a vanilla.

I am not pushing into the direction of yet another hardlink
> 
> Thanks,
> Conrad
> 
> On Wed, Nov 15, 2017 at 7:38 PM, Conrad Meyer <cem at freebsd.org> wrote:
> > Please revert this change.
> >
> > First, it introduces the POLA-violating behavior that zstdcat deletes
> > its source files.  This is not how zcat/bzcat behaves.
> >
> > Second, it introduces a needless behavioral difference between FreeBSD
> > zstd and the rest of the world's zstd.  The zstd documentation we ship
> > continues to claim that zstd preserves source files by default, yet
> > this change makes that documentation exactly backwards.  While we can
> > change FreeBSD's documentation to accommodate the change, we can't
> > change Google results.
> >
> > Thanks,
> > Conrad
> >
> > On Sat, Apr 15, 2017 at 1:15 PM, Baptiste Daroussin <bapt at freebsd.org> wrote:
> >> Author: bapt
> >> Date: Sat Apr 15 20:15:44 2017
> >> New Revision: 316980
> >> URL: https://svnweb.freebsd.org/changeset/base/316980
> >>
> >> Log:
> >>   Change some default to make zstd a dropin replacement for gzip,bzip etc
> >>   in most cases
> >>
> >>   Changes ares:
> >>   - quiet by default
> >>   - remove the source files one compression completion by default
> >>
> >> Modified:
> >>   head/contrib/zstd/programs/fileio.c
> >>   head/contrib/zstd/programs/zstdcli.c
> >>
> >> Modified: head/contrib/zstd/programs/fileio.c
> >> ==============================================================================
> >> --- head/contrib/zstd/programs/fileio.c Sat Apr 15 20:06:24 2017        (r316979)
> >> +++ head/contrib/zstd/programs/fileio.c Sat Apr 15 20:15:44 2017        (r316980)
> >> @@ -138,7 +138,7 @@ static U32 g_dictIDFlag = 1;
> >>  void FIO_setDictIDFlag(unsigned dictIDFlag) { g_dictIDFlag = dictIDFlag; }
> >>  static U32 g_checksumFlag = 1;
> >>  void FIO_setChecksumFlag(unsigned checksumFlag) { g_checksumFlag = checksumFlag; }
> >> -static U32 g_removeSrcFile = 0;
> >> +static U32 g_removeSrcFile = 1;
> >>  void FIO_setRemoveSrcFile(unsigned flag) { g_removeSrcFile = (flag>0); }
> >>  static U32 g_memLimit = 0;
> >>  void FIO_setMemLimit(unsigned memLimit) { g_memLimit = memLimit; }
> >>
> >> Modified: head/contrib/zstd/programs/zstdcli.c
> >> ==============================================================================
> >> --- head/contrib/zstd/programs/zstdcli.c        Sat Apr 15 20:06:24 2017        (r316979)
> >> +++ head/contrib/zstd/programs/zstdcli.c        Sat Apr 15 20:15:44 2017        (r316980)
> >> @@ -61,7 +61,7 @@
> >>  #define MB *(1 <<20)
> >>  #define GB *(1U<<30)
> >>
> >> -#define DEFAULT_DISPLAY_LEVEL 2
> >> +#define DEFAULT_DISPLAY_LEVEL 1
> >>
> >>  static const char*    g_defaultDictName = "dictionary";
> >>  static const unsigned g_defaultMaxDictSize = 110 KB;
> >>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20171206/4db0b282/attachment.sig>


More information about the svn-src-head mailing list