Go to file
Xin LI 906748d208 newsyslog(8): Add option to globally override compression method.
Historically, newsyslog compressed rotated log files to save disk space.
This was useful in the early days. However, with modern file systems like
ZFS offering native compression, and with the availability of larger hard
drives, the benefits of additional compression have become less significant.
This is particularly true considering the inconvenience of decompressing
log files when searching for specific patterns.

Additionally, the original implementation of compression methods was not
future-proof.  As a result, we have redefined the J, X, Y, Z flags to
signify "treat the file as compressible" rather than "compress the file
with that specific method."

A new command-line option, -c, has been introduced to allow overriding
these settings in a more future-proof way. The available choices are:

 * none			 - do not compress, regardless of flag.
 * legacy		 - historical behavior: J=bzip2, X=xz, Y=zstd, Z=gzip.
 * bzip2, xz, zstd, gzip - apply the specified compression method.

Currently, the default is set to 'legacy' to preserve historical behavior.
However, our intention is to change this default to 'none' in FreeBSD 15.0.

Additionally, this update changes the default settings for zstd to use
multithreading and long-range options, better aligning with its intended
use.

Inspired by D42961 .

Reviewed by:	debdrup (earlier version, mdoc(7))
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D43165
2023-12-22 22:46:33 -08:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
bin cp: Move the -N flag in the manual page. 2023-12-14 21:02:06 +01:00
cddl libicp(_rescue)?: use asm versions for all 32-bit arm flavors 2023-12-13 20:00:35 +01:00
contrib contrib/tzdata: import tzdata 2023d 2023-12-23 09:51:01 +08:00
crypto Implement "strict key exchange" in ssh and sshd. 2023-12-18 08:22:22 -08:00
etc Proactively remove libc++ __tuple header file that became a directory 2023-12-13 19:53:17 +01:00
gnu misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
include libc: expose execvpe for Linux compat 2023-12-11 19:24:53 +00:00
kerberos5 sccs: Manual changes 2023-11-26 22:23:58 -07:00
lib regex: mixed sets are misidentified as singletons 2023-12-22 12:19:59 +07:00
libexec libexec/rc/rc.initdiskless: make tar's path flexible 2023-12-15 03:46:44 -05:00
release release/Makefile.vm: Add cloudware overrides 2023-12-15 10:08:50 -08:00
rescue misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
sbin devd: Don't install autofs.conf with WITHOUT_AUTOFS 2023-12-22 15:27:50 +01:00
secure ossl: Move arm_arch.h to a common subdirectory 2023-12-04 12:29:11 -05:00
share Silence snprintf truncation warnings in printf_test examples 2023-12-21 23:45:52 +01:00
stand Add kenv .Xr in kldload(8) and loader.conf(5) 2023-12-20 21:17:38 -07:00
sys iichid(4): Improve idle sampling hysteresis 2023-12-22 22:50:52 -05:00
targets Merge llvm-project main llvmorg-17-init-19304-gd0b54bb50e51 2023-12-08 18:34:50 +01:00
tests Silence VLA extension warnings in fusefs tests 2023-12-21 23:45:52 +01:00
tools devd: Don't install autofs.conf with WITHOUT_AUTOFS 2023-12-22 15:27:50 +01:00
usr.bin seq(1): Put separator only between the elements. 2023-12-21 21:54:05 -08:00
usr.sbin newsyslog(8): Add option to globally override compression method. 2023-12-22 22:46:33 -08:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint
.cirrus.yml Cirrus-CI: stop forcibly installing pkg 2023-12-12 19:50:19 -05:00
.clang-format Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
.git-blame-ignore-revs git-blame-ignore-revs: OptionalObsoleteFiles.inc sorting commits 2023-11-15 17:47:02 +00:00
.gitattributes Revert "awk: Merge upstream 2nd Edition Awk Book" 2023-11-15 15:28:05 -07:00
.gitignore .gitignore: Ignore LSP generated .cache 2023-03-07 10:04:18 -05:00
.mailmap Fix Sumit's email address 2023-10-19 15:49:05 -06:00
CONTRIBUTING.md CONTRIBUTING.md: add author identity info 2023-09-20 19:28:28 -04:00
COPYRIGHT misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
LOCKS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
MAINTAINERS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
Makefile Import tzdata 2023d 2023-12-23 09:34:58 +08:00
Makefile.inc1 Make kldxref a bootstrap tool and use unconditionally 2023-12-13 21:43:10 +00:00
Makefile.libcompat build{libcompat}: Pass UNIVERSE_TOOLCHAIN_PATH to the _lc_build-tools submake 2023-08-21 21:00:45 -07:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc ObsoleteFiles.inc: remove old libufs.so.7 after bump 2023-12-08 22:23:00 +01:00
README.md ota: Import One True Awk from 20231102 (254b979f32df) 2023-11-02 10:20:09 -06:00
RELNOTES RELNOTES: Add an entry for commit 7c5146da12 2023-12-22 12:25:19 -08:00
UPDATING UPDATING: Add unset hint.acpi.0.disabled as workaround for no ACPI 2023-11-22 21:12:28 -07:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.