-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formal changes: tests, documentation, copyright
Add zstd to the test suite - add zstd to history_002_pos.ksh - add random levels of zstd to history_002_pos.ksh - add zstd-fast to history_002_pos.ksh - add random levels of zstd-fast to history_002_pos.ksh Add documentation - add man page content - add README for contrib/zstd Fixup copyright headers of touched and new files - Adds copyright headers for Allan Jude / Klara Inc. - Added Ornias1993 Copyright - Cleans copyright header formatting Co-authored-by: Allan Jude <[email protected]> Co-authored-by: Sebastian Gottschall <[email protected]> Co-authored-by: Kjeld Schouten-Lebbing <[email protected]> Co-authored-by: Michael Niewöhner <[email protected]> Signed-off-by: Allan Jude <[email protected]> Signed-off-by: Sebastian Gottschall <[email protected]> Signed-off-by: Kjeld Schouten-Lebbing <[email protected]> Signed-off-by: Michael Niewöhner <[email protected]>
- Loading branch information
1 parent
db154a3
commit 8f71e1e
Showing
23 changed files
with
256 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# ZSTD Contrib Library Manual | ||
|
||
## Introduction | ||
|
||
This `contrib` contains the ZSTD library used in ZFS. It is heavily cut-down by | ||
dropping any unneeded files but otherwise is intentionally unmodified. Please do | ||
not alter these files in any way, besides upgrading to a newer ZSTD release. | ||
|
||
## Updating ZSTD | ||
|
||
To update ZSTD the following steps need to be taken: | ||
|
||
1. Grab the latest release of [ZSTD](https://github.com/facebook/zstd/releases). | ||
2. Replace (not merge) `common`, `compress`, `decompress` and `zstd.h` with the | ||
new versions from `lib/`. | ||
3. Make sure any newly required files and/or folders are also included. | ||
1. Add an empty file `Makefile.am` inside any new folder. | ||
2. Add them to `AC_CONFIG_FILES` in `configure.ac` accordingly. | ||
3. Make sure new files/folders are listed in | ||
- `contrib/zstd/Makefile.am` | ||
- `lib/libzstd/Makefile.am` | ||
- `module/zstd/Makefile.in` | ||
- this README | ||
4. Update the version `ZFS_MODULE_VERSION("x.y.z")` in `module/zstd/zstd.c`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,11 +21,14 @@ | |
|
||
/* | ||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright 2011 Nexenta Systems, Inc. All rights reserved. | ||
* Copyright (c) 2012, 2018 by Delphix. All rights reserved. | ||
* Copyright (c) 2013 by Saso Kiselkov. All rights reserved. | ||
* Copyright (c) 2011, Nexenta Systems, Inc. All rights reserved. | ||
* Copyright (c) 2012, 2018, Delphix. All rights reserved. | ||
* Copyright (c) 2013, Saso Kiselkov. All rights reserved. | ||
* Copyright (c) 2013, Joyent, Inc. All rights reserved. | ||
* Copyright 2016 Toomas Soome <[email protected]> | ||
* Copyright (c) 2016, Toomas Soome. All rights reserved. | ||
* Copyright (c) 2019, Allan Jude. All rights reserved. | ||
* Copyright (c) 2019, Klara Inc. All rights reserved. | ||
* Use is subject to license terms. | ||
*/ | ||
|
||
#ifndef _ZIO_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,23 +19,22 @@ | |
.\" CDDL HEADER END | ||
.\" | ||
.\" | ||
.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved. | ||
.\" Copyright 2011 Joshua M. Clulow <[email protected]> | ||
.\" Copyright (c) 2011, 2019 by Delphix. All rights reserved. | ||
.\" Copyright (c) 2011, Pawel Jakub Dawidek <[email protected]> | ||
.\" Copyright (c) 2012, Glen Barber <[email protected]> | ||
.\" Copyright (c) 2012, Bryan Drewery <[email protected]> | ||
.\" Copyright (c) 2013, Steven Hartland <[email protected]> | ||
.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved. | ||
.\" Copyright (c) 2014, Joyent, Inc. All rights reserved. | ||
.\" Copyright (c) 2014 by Adam Stevko. All rights reserved. | ||
.\" Copyright (c) 2014 Integros [integros.com] | ||
.\" Copyright (c) 2016 Nexenta Systems, Inc. All Rights Reserved. | ||
.\" Copyright (c) 2014, Xin LI <[email protected]> | ||
.\" Copyright (c) 2014-2015, The FreeBSD Foundation, All Rights Reserved. | ||
.\" Copyright 2019 Richard Laager. All rights reserved. | ||
.\" Copyright 2018 Nexenta Systems, Inc. | ||
.\" Copyright 2019 Joyent, Inc. | ||
.\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved. | ||
.\" Copyright (c) 2011, Joshua M. Clulow. All Rights Reserved. | ||
.\" Copyright (c) 2011, 2019, Delphix. All rights reserved. | ||
.\" Copyright (c) 2011, Pawel Jakub Dawidek. All rights reserved. | ||
.\" Copyright (c) 2012, Glen Barber. All rights reserved. | ||
.\" Copyright (c) 2012, Bryan Drewery. All rights reserved. | ||
.\" Copyright (c) 2013, Steven Hartland. All rights reserved. | ||
.\" Copyright (c) 2013, Saso Kiselkov. All rights reserved. | ||
.\" Copyright (c) 2014, 2019, Joyent, Inc. All rights reserved. | ||
.\" Copyright (c) 2014, Adam Stevko. All rights reserved. | ||
.\" Copyright (c) 2014, Integros. All rights reserved. | ||
.\" Copyright (c) 2014, Xin LI. All rights reserved. | ||
.\" Copyright (c) 2014-2015, The FreeBSD Foundation. All Rights Reserved. | ||
.\" Copyright (c) 2016, 2018, Nexenta Systems, Inc. All rights reserved. | ||
.\" Copyright (c) 2019, Richard Laager. All rights reserved. | ||
.\" Copyright (c) 2019, Kjeld Schouten-Lebbing. All rights reserved. | ||
.\" | ||
.Dd January 30, 2020 | ||
.Dt ZFSPROPS 8 | ||
|
@@ -774,7 +773,8 @@ for more information on these algorithms. | |
Changing this property affects only newly-written data. | ||
.It Xo | ||
.Sy compression Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy gzip Ns | Ns | ||
.Sy gzip- Ns Em N Ns | Ns Sy lz4 Ns | Ns Sy lzjb Ns | Ns Sy zle | ||
.Sy gzip- Ns Em N Ns | Ns Sy lz4 Ns | Ns Sy lzjb Ns | Ns Sy zle Ns | Ns Sy zstd Ns | Ns | ||
.Sy zstd- Ns Em N Ns | Ns Sy zstd-fast- Ns Em N | ||
.Xc | ||
Controls the compression algorithm used for this dataset. | ||
.Pp | ||
|
@@ -842,6 +842,35 @@ is equivalent to | |
.Pc . | ||
.Pp | ||
The | ||
.Sy zstd | ||
compression using the zstd algorithm , | ||
You can specify the | ||
.Sy zstd | ||
level by using the value | ||
.Sy zstd- Ns Em N , | ||
where | ||
.Em N | ||
is an integer from 1 | ||
.Pq fastest | ||
to 19 | ||
.Pq best compression ratio . | ||
.Sy zstd | ||
You can also specify a negative | ||
.Sy zstd | ||
level by using the value | ||
.Sy zstd- Ns Em N , | ||
where | ||
.Em N | ||
is an integer from 100 | ||
.Pq fastest | ||
to 1 | ||
.Pq best compression ratio . | ||
.Sy zstd | ||
is equivalent to | ||
.Sy zstd-3 | ||
.Pc . | ||
.Pp | ||
The | ||
.Sy zle | ||
compression algorithm compresses runs of zeros. | ||
.Pp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,15 @@ | |
* | ||
* CDDL HEADER END | ||
*/ | ||
|
||
/* | ||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright (c) 2018, Joyent, Inc. | ||
* Copyright (c) 2018, Joyent Inc. All rights reserved. | ||
* Copyright (c) 2011, 2019, Delphix. All rights reserved. | ||
* Copyright (c) 2014, Saso Kiselkov. All rights reserved. | ||
* Copyright (c) 2017, Nexenta Systems, Inc. All rights reserved. | ||
* Copyright (c) 2017, Nexenta Systems Inc. All rights reserved. | ||
* Copyright (c) 2019, loli10K <[email protected]>. All rights reserved. | ||
* Portions Copyright (c) 2019 by Klara Inc. | ||
* Copyright (c) 2019, Klara Inc. All rights reserved. | ||
* Copyright (c) 2020, George Amanakis. All rights reserved. | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,19 +21,21 @@ | |
|
||
/* | ||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright (c) 2012, 2018 by Delphix. All rights reserved. | ||
* Copyright (c) 2013 by Saso Kiselkov. All rights reserved. | ||
* Copyright (c) 2013, Joyent, Inc. All rights reserved. | ||
* Copyright (c) 2014 Spectra Logic Corporation, All rights reserved. | ||
* Copyright (c) 2015, STRATO AG, Inc. All rights reserved. | ||
* Copyright (c) 2016 Actifio, Inc. All rights reserved. | ||
* Copyright 2017 Nexenta Systems, Inc. | ||
* Copyright (c) 2017 Open-E, Inc. All Rights Reserved. | ||
* Copyright (c) 2010, Robert Milkowski. All rights reserved. | ||
* Copyright (c) 2012, 2018, Delphix. All rights reserved. | ||
* Copyright (c) 2013, Saso Kiselkov. All rights reserved. | ||
* Copyright (c) 2013, Joyent Inc. All rights reserved. | ||
* Copyright (c) 2014, Spectra Logic Corporation. All rights reserved. | ||
* Copyright (c) 2015, STRATO AG. All rights reserved. | ||
* Copyright (c) 2016, Actifio Inc. All rights reserved. | ||
* Copyright (c) 2017, Nexenta Systems Inc. All Rights Reserved. | ||
* Copyright (c) 2017, Open-E Inc. All Rights Reserved. | ||
* Copyright (c) 2018, loli10K <[email protected]>. All rights reserved. | ||
* Copyright (c) 2019, Klara Inc. All rights reserved. | ||
* Copyright (c) 2019, Allan Jude. All rights reserved. | ||
* Use is subject to license terms. | ||
*/ | ||
|
||
/* Portions Copyright 2010 Robert Milkowski */ | ||
|
||
#include <sys/zfeature.h> | ||
#include <sys/cred.h> | ||
#include <sys/zfs_context.h> | ||
|
Oops, something went wrong.