| /freebsd/contrib/file/tests/ |
| H A D | Makefile.am | 139 zstd-3-skippable-frames.result \ 140 zstd-dictionary-0.result \ 141 zstd-dictionary-1.result \ 142 zstd-dictionary-2.result \ 143 zstd-skippable-frame-0.result \ 144 zstd-skippable-frame-4.result \ 145 zstd-skippable-frame-8.result \ 146 zstd-skippable-frame-C.result \ 147 zstd-v0.2-FF.result \ 148 zstd-v0.2-FF.testfile \ [all …]
|
| H A D | Makefile.in | 433 zstd-3-skippable-frames.result \ 434 zstd-dictionary-0.result \ 435 zstd-dictionary-1.result \ 436 zstd-dictionary-2.result \ 437 zstd-skippable-frame-0.result \ 438 zstd-skippable-frame-4.result \ 439 zstd-skippable-frame-8.result \ 440 zstd-skippable-frame-C.result \ 441 zstd-v0.2-FF.result \ 442 zstd-v0.2-FF.testfile \ [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzstd/ |
| H A D | Makefile.am | 5 # -fno-tree-vectorize is set for gcc in zstd/common/compiler.h 12 module/zstd/lib/common/entropy_common.c \ 13 module/zstd/lib/common/error_private.c \ 14 module/zstd/lib/common/fse_decompress.c \ 15 module/zstd/lib/common/pool.c \ 16 module/zstd/lib/common/zstd_common.c \ 17 module/zstd/lib/compress/fse_compress.c \ 18 module/zstd/lib/compress/hist.c \ 19 module/zstd/lib/compress/huf_compress.c \ 20 module/zstd/lib/compress/zstd_compress_literals.c \ [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/ |
| H A D | zfs_set_feature_activation.ksh | 34 # Setting the compression property to any of the zstd levels should activate 35 # the zstd feature flag. Destroying the last dataset using the zstd feature flag 40 # 2. Check that the zstd feature flag is 'enabled'. 41 # 3. Setting the compression property to zstd. 42 # 4. Check that the zstd feature flag is now 'active'. 49 log_assert "Setting compression=zstd should activate the"\ 54 export VDEV_ZSTD="$TEST_BASE_DIR/vdev-zstd" 58 if poolexists $TESTPOOL-zstd ; then 59 destroy_pool $TESTPOOL-zstd 67 log_must zpool create $TESTPOOL-zstd $VDEV_ZSTD [all …]
|
| /freebsd/sys/contrib/openzfs/module/zstd/ |
| H A D | README.md | 1 # Zstd-On-ZFS Library Manual 5 This subtree contains the Zstd library used in ZFS. It is heavily cut-down by 7 intentionally unmodified. Please do not alter the file containing the zstd 8 library, besides upgrading to a newer Zstd release. 14 * `zstd-in.c` is our template file for generating the single-file library 17 future. Thus we keep them private to Zstd. 19 ## Zstd update policy 21 Since the exact compressed byte stream may change between Zstd versions, updates 24 1. Zstd may be updated, as needed, after a new .0 release is tagged. 27 3. The Zstd version will not be upgraded within a major release. [all …]
|
| /freebsd/sys/contrib/zstd/programs/ |
| H A D | README.md | 6 - `zstd` : default CLI supporting gzip-like arguments; includes dictionary builder, benchmark, and … 7 - `zstd_nolegacy` : Same as `zstd` but without support for legacy zstd formats 8 - `zstd-small` : CLI optimized for minimal size; no dictionary builder, no benchmark, and no suppor… 9 - `zstd-compress` : version of CLI which can only compress into zstd format 10 - `zstd-decompress` : version of CLI which can only decompress zstd format 14 `zstd` scope can be altered by modifying the following `make` variables : 18 Example : `make zstd HAVE_THREAD=0` 23 - __ZSTD_LEGACY_SUPPORT__ : `zstd` can decompress files compressed by older versions of `zstd`. 24 …Starting v0.8.0, all versions of `zstd` produce frames compliant with the [specification](../doc/z… 26 By default, `zstd` supports decoding legacy formats >= v0.4.0 (`ZSTD_LEGACY_SUPPORT=4`). [all …]
|
| H A D | zstd.1 | 1 .TH "ZSTD" "1" "October 2024" "zstd 1.5.6" "User Commands" 3 \fBzstd\fR \- zstd, zstdmt, unzstd, zstdcat \- Compress or decompress \.zst files 7 \fBzstd\fR [\fIOPTIONS\fR] [\- \fIINPUT\-FILE\fR] [\-o \fIOUTPUT\-FILE\fR] 10 \fBzstdmt\fR is equivalent to \fBzstd \-T0\fR 12 \fBunzstd\fR is equivalent to \fBzstd \-d\fR 14 \fBzstdcat\fR is equivalent to \fBzstd \-dcf\fR 16 …zstd\fR is a fast lossless compression algorithm and data compression tool, with command line synt… 18 \fBzstd\fR command line syntax is generally similar to gzip, but features the following few differe… 22 When compressing a single file, \fBzstd\fR displays progress notifications and result summary by de… 24 \fBzstd\fR displays a short help page when command line is an error\. Use \fB\-q\fR to turn it off\. [all …]
|
| H A D | zstd.1.md | 1 zstd(1) -- zstd, zstdmt, unzstd, zstdcat - Compress or decompress .zst files 7 `zstd` [<OPTIONS>] [-|<INPUT-FILE>] [-o <OUTPUT-FILE>] 9 `zstdmt` is equivalent to `zstd -T0` 11 `unzstd` is equivalent to `zstd -d` 13 `zstdcat` is equivalent to `zstd -dcf` 18 `zstd` is a fast lossless compression algorithm and data compression tool, 21 `zstd` offers highly configurable compression speed, 27 `zstd` command line syntax is generally similar to gzip, 32 - When compressing a single file, `zstd` displays progress notifications 35 - `zstd` displays a short help page when command line is an error. [all …]
|
| H A D | zstdless | 3 zstd=${ZSTD:-zstd} 5 …ss quirks and bugs tied to old versions of less, provide a mechanism to pass flags directly to zstd 7 export LESSOPEN="|-${zstd} -cdfq %s"
|
| /freebsd/usr.bin/zstd/ |
| H A D | Makefile | 1 PACKAGE= zstd 3 PROG= zstd 17 CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/programs \ 18 -I${SRCTOP}/sys/contrib/zstd/lib/common \ 19 -I${SRCTOP}/sys/contrib/zstd/lib/compress \ 20 -I${SRCTOP}/sys/contrib/zstd/lib/dictBuilder \ 21 -I${SRCTOP}/sys/contrib/zstd/lib \ 25 LINKS= ${BINDIR}/zstd ${BINDIR}/unzstd \ 26 ${BINDIR}/zstd ${BINDIR}/zstdcat \ 27 ${BINDIR}/zstd ${BINDIR}/zstdmt [all …]
|
| /freebsd/sys/contrib/zstd/ |
| H A D | README.md | 1 <p align="center"><img src="https://raw.githubusercontent.com/facebook/zstd/dev/doc/images/zstd_log… 3 __Zstandard__, or `zstd` as short version, is a fast lossless compression algorithm, 11 …and bindings is provided on [Zstandard homepage](https://facebook.github.io/zstd/#other-languages). 20 [travisDevBadge]: https://api.travis-ci.com/facebook/zstd.svg?branch=dev "Continuous Integration te… 21 [travisLink]: https://travis-ci.com/facebook/zstd 22 [CircleDevBadge]: https://circleci.com/gh/facebook/zstd/tree/dev.svg?style=shield "Short test suite" 23 [CircleLink]: https://circleci.com/gh/facebook/zstd 24 [CirrusDevBadge]: https://api.cirrus-ci.com/github/facebook/zstd.svg?branch=dev 25 [CirrusLink]: https://cirrus-ci.com/github/facebook/zstd 26 [OSSFuzzBadge]: https://oss-fuzz-build-logs.storage.googleapis.com/badges/zstd.svg [all …]
|
| /freebsd/sys/contrib/zstd/zlibWrapper/ |
| H A D | README.md | 4 … main objective of creating a zstd wrapper for [zlib](https://zlib.net/) is to allow a quick and s… 8 To build the zstd wrapper for zlib the following files are required: 15 - a static or dynamic zstd library 17 The first two files are required by all projects using zlib and they are not included with the zstd… 18 The further files are supplied with the zstd distribution. 21 #### Embedding the zstd wrapper within your project 26 To compile the zstd wrapper with your project you have to do the following: 28 - compile your project with `zstd_zlibwrapper.c`, `gz*.c` and a static or dynamic zstd library 34 #### Enabling zstd compression within your project 36 After embedding the zstd wrapper within your project the zstd library is turned off by default. [all …]
|
| H A D | zstd_zlibwrapper.h | 32 /* returns a string with version of zstd library */ 37 /* ZWRAP_useZSTDcompression() enables/disables zstd compression during runtime. 38 … By default zstd compression is disabled. To enable zstd compression please use one of the methods: 42 All above-mentioned methods will enable zstd compression for all threads. 46 /* checks if zstd compression is turned on */ 50 It will change ZSTD compression parameters what may improve compression speed and/or ratio. 67 /* ZWRAP_setDecompressionType() enables/disables automatic recognition of zstd/zlib compressed data… 68 By default auto-detection of zstd and zlib streams in enabled (ZWRAP_AUTO). 74 /* checks zstd decompression type */ 77 /* Checks if zstd decompression is used for a given stream. [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | Compression.cpp | 24 #include <zstd.h> 37 case compression::Format::Zstd: in getReasonIfUnsupported() 38 if (zstd::isAvailable()) in getReasonIfUnsupported() 40 return "LLVM was not built with LLVM_ENABLE_ZSTD or did not find zstd at " in getReasonIfUnsupported() 52 case compression::Format::Zstd: in compress() 53 zstd::compress(Input, Output, P.level, P.zstdEnableLdm); in compress() 63 case compression::Format::Zstd: in decompress() 64 return zstd::decompress(Input, Output, UncompressedSize); in decompress() 75 case compression::Format::Zstd: in decompress() 76 return zstd::decompress(Input, Output, UncompressedSize); in decompress() [all …]
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_read_support_filter_zstd.c | 46 #include <zstd.h> 61 char in_frame; /* True = in the middle of a zstd frame. */ 65 /* Zstd Filter. */ 71 * Note that we can detect zstd compressed files even if we can't decompress 73 * messages.) So the bid framework here gets compiled even if no zstd library 91 if (__archive_read_register_bidder(a, NULL, "zstd", in archive_read_support_filter_zstd() 99 "Using external zstd program for zstd decompression"); in archive_read_support_filter_zstd() 123 // Zstd regular frame magic number. in zstd_bidder_bid() 126 // Note: Zstd and LZ4 skippable frame magic numbers are identical. in zstd_bidder_bid() 156 // There should be at least one more frame if this is zstd data. in zstd_bidder_bid() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/ |
| H A D | zdb_decompress_zstd.ksh | 25 # zdb -Z pool <objid> will display the ZSTD compression header 27 # the version of ZSTD used to compress the block, and the compression level 30 # 1. Create a pool, set compression to zstd-<random level> 33 # 4. Record the DVA, lsize, and psize, and ZSTD header of L0 block 0 34 # 5. Check that the ZSTD length is less than psize 35 # 6. Check that the ZSTD level matches the level we requested 44 log_assert "Verify zdb -Z (read ZSTD header) works as expected" 56 log_must zfs set compression=zstd-$random_level $TESTPOOL/$TESTFS 87 # Get the ZSTD header reported by zdb -Z 88 read -r zstd_size zstd_version zstd_level < <(sed -Ene 's/^.+ ZSTD:size=([^:]+):version=([^:]+):lev… [all …]
|
| /freebsd/sys/contrib/openzfs/module/zcommon/ |
| H A D | zfs_prop.c | 135 { "zstd", ZIO_COMPRESS_ZSTD }, in zfs_prop_init() 136 { "zstd-fast", in zfs_prop_init() 140 * ZSTD 1-19 are synthetic. We store the compression level in a in zfs_prop_init() 151 { "zstd-1", ZIO_COMPLEVEL_ZSTD(ZIO_ZSTD_LEVEL_1) }, in zfs_prop_init() 152 { "zstd-2", ZIO_COMPLEVEL_ZSTD(ZIO_ZSTD_LEVEL_2) }, in zfs_prop_init() 153 { "zstd-3", ZIO_COMPLEVEL_ZSTD(ZIO_ZSTD_LEVEL_3) }, in zfs_prop_init() 154 { "zstd-4", ZIO_COMPLEVEL_ZSTD(ZIO_ZSTD_LEVEL_4) }, in zfs_prop_init() 155 { "zstd-5", ZIO_COMPLEVEL_ZSTD(ZIO_ZSTD_LEVEL_5) }, in zfs_prop_init() 156 { "zstd-6", ZIO_COMPLEVEL_ZSTD(ZIO_ZSTD_LEVEL_6) }, in zfs_prop_init() 157 { "zstd-7", ZIO_COMPLEVEL_ZSTD(ZIO_ZSTD_LEVEL_7) }, in zfs_prop_init() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/ |
| H A D | zfs_receive_from_zstd.ksh | 28 # ZFS should receive a ZSTD compressed block and be able to determine the level 31 # 1. Create a ZSTD compressed dataset (random level) 52 log_assert "ZFS should track compression level when receiving a ZSTD stream" 58 log_note "Randomly selected ZSTD level: $random_level" 60 log_must zfs create -o compress=zstd-$random_level $TESTPOOL/$TESTFS1 77 read -r zstd_size1 zstd_version1 zstd_level1 < <(sed -Ene 's/^.+ ZSTD:size=([^:]+):version=([^:]+):… 78 log_note "ZSTD src: size=$zstd_size1 version=$zstd_version1 level=$zstd_level1" 80 log_note "Verify ZFS can receive the ZSTD compressed stream" 96 read -r zstd_size2 zstd_version2 zstd_level2 < <(sed -Ene 's/^.+ ZSTD:size=([^:]+):version=([^:]+):… 97 log_note "ZSTD dest: size=$zstd_size2 version=$zstd_version2 level=$zstd_level2" [all …]
|
| /freebsd/sys/contrib/zstd/lib/ |
| H A D | README.md | 41 via the [advanced API defined in `lib/zstd.h`](https://github.com/facebook/zstd/blob/v1.4.3/lib/zst… 46 Zstandard's stable API is exposed within [lib/zstd.h](zstd.h). 56 - `ZSTD_STATIC_LINKING_ONLY` : if this macro is defined _before_ including `zstd.h`, 58 exposed in the second part of `zstd.h`. 82 - `lib/legacy` : makes it possible to decompress legacy zstd formats, starting from `v0.1.0`. 117 a time or two symbols at a time. Zstd normally includes both (and dispatches 126 On the compressor side, Zstd's compression levels map to several internal 171 that zstd does not use. Not all unused functions are hidden, but they can be if needed. 185 can be overridden to control the visibility of zstd's API. Additionally, 187 of zstd's static API. Specifically, it can be set to `ZSTDLIB_HIDDEN` to hide the symbols [all …]
|
| H A D | zdict.h | 51 * Zstd dictionary builder 58 * Zstd can use dictionaries to improve compression ratio of small data. 63 * these files. Then, zstd can use the dictionary to find repetitions that are 77 * Simply pass the dictionary to the zstd compressor with 80 * more advanced functions that allow selecting some options, see zstd.h for 83 * What is a zstd dictionary? 86 * A zstd dictionary has two pieces: Its header, and its content. The header 88 * entropy tables allow zstd to save on header costs in the compressed file, 95 * A raw content dictionary is just bytes. It doesn't have a zstd dictionary 121 * The zstd CLI defaults to a 110KB dictionary. You likely don't need a [all …]
|
| /freebsd/contrib/libarchive/cpio/test/ |
| H A D | test_option_zstd.c | 18 /* Archive it with zstd compression. */ in DEFINE_TEST() 19 r = systemf("echo f | %s -o --zstd >archive.out 2>archive.err", in DEFINE_TEST() 26 "without zstd support"); in DEFINE_TEST() 34 skipping("This version of bsdcpio uses an external zstd program " in DEFINE_TEST() 43 skipping("This version of bsdcpio uses an external zstd program " in DEFINE_TEST() 50 skipping("This version of bsdcpio uses an external zstd program " in DEFINE_TEST() 54 failure("--zstd option is broken: %s", p); in DEFINE_TEST() 59 /* Check that the archive file has an zstd signature. */ in DEFINE_TEST()
|
| /freebsd/contrib/libarchive/libarchive/test/ |
| H A D | test_compat_zstd.c | 27 * Verify our ability to read sample files compatibly with 'zstd -d'. 30 * * zstd -d will read multiple zstd streams, concatenating the output 31 * * zstd -d will skip over zstd skippable frames 46 skipping("zstd reading not fully supported on this platform"); in compat_zstd() 67 assertEqualString(archive_filter_name(a, 0), "zstd"); in compat_zstd() 77 /* This sample was compressed as 3 separate streams with a zstd skippable in DEFINE_TEST()
|
| /freebsd/lib/libzstd/ |
| H A D | Makefile | 1 PACKAGE= zstd 4 LIB= zstd 39 INCS= zstd.h 51 ZSTDDIR= ${SRCTOP}/sys/contrib/zstd 58 # These symbols are needed by dll-linked CLI zstd(1). 63 # https://github.com/facebook/zstd/commit/812e8f2a [zstd 1.4.1]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Compression.h | 31 Zstd, ///< Zstandard enumerator 57 namespace zstd { 77 } // End of namespace zstd 81 Zstd, enumerator 90 case DebugCompressionType::Zstd: in formatFor() 91 return Format::Zstd; in formatFor() 99 : zstd::DefaultCompression) {} in Params() 106 bool zstdEnableLdm = false; // Enable zstd long distance matching 107 // This may support multi-threading for zstd in the future. Note that
|
| /freebsd/stand/libsa/zfs/ |
| H A D | Makefile.inc | 4 .PATH: ${ZFSTOP}/module/zstd 5 .PATH: ${ZFSTOP}/module/zstd/lib/common 6 .PATH: ${ZFSTOP}/module/zstd/lib/compress 7 .PATH: ${ZFSTOP}/module/zstd/lib/decompress 52 CFLAGS.xxhash.c+= -I${ZFSTOP}/module/zstd/lib/common 63 # zfs.c is special: we need to define HAS_ZSTD_ZFS to get zfssubr.c to initialize zstd 76 # ZSTD coding style has some issues, so suppress clang's warnings. Also, zstd's
|