diff --git a/include/sys/arc.h b/include/sys/arc.h index 3d51f27b0afb..37d0fbcffbbb 100644 --- a/include/sys/arc.h +++ b/include/sys/arc.h @@ -20,8 +20,11 @@ */ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2012, 2016 by Delphix. All rights reserved. - * Copyright (c) 2013 by Saso Kiselkov. All rights reserved. + * Copyright (c) 2012, 2016, Delphix. All rights reserved. + * Copyright (c) 2013, Saso Kiselkov. 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 _SYS_ARC_H diff --git a/include/sys/spa.h b/include/sys/spa.h index 178ed4994745..ce99362a7408 100644 --- a/include/sys/spa.h +++ b/include/sys/spa.h @@ -20,14 +20,17 @@ */ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2011, 2019 by Delphix. All rights reserved. - * Copyright 2011 Nexenta Systems, Inc. All rights reserved. - * Copyright (c) 2014 Spectra Logic Corporation, All rights reserved. - * Copyright 2013 Saso Kiselkov. All rights reserved. - * Copyright (c) 2014 Integros [integros.com] - * Copyright 2017 Joyent, Inc. - * Copyright (c) 2017, 2019, Datto Inc. All rights reserved. - * Copyright (c) 2017, Intel Corporation. + * Copyright (c) 2011, 2019, Delphix. All rights reserved. + * Copyright (c) 2011, Nexenta Systems Inc. All rights reserved. + * Copyright (c) 2014, Spectra Logic Corporation. All rights reserved. + * Copyright (c) 2013, Saso Kiselkov. All rights reserved. + * Copyright (c) 2014, Integros. All rights reserved. + * Copyright (c) 2017, Joyent, Inc. All rights reserved. + * Copyright (c) 2017, Datto Inc. All rights reserved. + * Copyright (c) 2017, Intel Corporation. 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 _SYS_SPA_H diff --git a/include/sys/zio.h b/include/sys/zio.h index 26ea728ea682..6347357a3158 100644 --- a/include/sys/zio.h +++ b/include/sys/zio.h @@ -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 + * 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 diff --git a/include/sys/zio_compress.h b/include/sys/zio_compress.h index 2cb32efd7b8f..24e57ee25fce 100644 --- a/include/sys/zio_compress.h +++ b/include/sys/zio_compress.h @@ -20,9 +20,11 @@ */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Copyright (c) 2009, Sun Microsystems Inc. All rights reserved. + * Copyright (c) 2015, 2016, Delphix. 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. - * Copyright (c) 2015, 2016 by Delphix. All rights reserved. */ #ifndef _SYS_ZIO_COMPRESS_H @@ -82,11 +84,10 @@ enum zio_zstd_levels { ZIO_ZSTD_LEVEL_18, ZIO_ZSTD_LEVEL_19, #define ZIO_ZSTD_LEVEL_MAX ZIO_ZSTD_LEVEL_19 -#define ZIO_ZSTD_LEVEL_MAX ZIO_ZSTD_LEVEL_19 ZIO_ZSTD_LEVEL_RESERVE = 101, /* Leave room for new positive levels */ ZIO_ZSTD_LEVEL_FAST, /* Fast levels are negative */ ZIO_ZSTD_LEVEL_FAST_1, -#define ZIO_ZSTD_FAST_LEVEL_DEFAULT ZIO_ZSTD_LEVEL_FAST_1 +#define ZIO_ZSTD_LEVEL_FAST_DEFAULT ZIO_ZSTD_LEVEL_FAST_1 ZIO_ZSTD_LEVEL_FAST_2, ZIO_ZSTD_LEVEL_FAST_3, ZIO_ZSTD_LEVEL_FAST_4, @@ -154,12 +155,6 @@ extern zio_compress_info_t zio_compress_table[ZIO_COMPRESS_FUNCTIONS]; extern void lz4_init(void); extern void lz4_fini(void); -/* - * specific to zstd user space implementation only - */ -extern void zstd_fini(void); -extern int zstd_init(void); - /* * Compression routines. */ @@ -179,13 +174,6 @@ extern size_t lz4_compress_zfs(void *src, void *dst, size_t s_len, size_t d_len, int level); extern int lz4_decompress_zfs(void *src, void *dst, size_t s_len, size_t d_len, int level); -extern size_t zstd_compress(void *src, void *dst, size_t s_len, size_t d_len, - int level); -extern int zstd_decompress(void *src, void *dst, size_t s_len, size_t d_len, - int level); -extern int zstd_decompress_level(void *src, void *dst, size_t s_len, - size_t d_len, uint8_t *level); -extern int zstd_get_level(void *src, size_t s_len, uint8_t *level); /* * Compress and decompress data if necessary. diff --git a/module/zcommon/zfeature_common.c b/module/zcommon/zfeature_common.c index 8a9e74894066..1a8c3a542f9a 100644 --- a/module/zcommon/zfeature_common.c +++ b/module/zcommon/zfeature_common.c @@ -20,11 +20,14 @@ */ /* - * Copyright (c) 2011, 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, Nexenta Systems, Inc. All rights reserved. - * Copyright (c) 2017, Intel Corporation. + * Copyright (c) 2011, 2018, Delphix. All rights reserved. + * Copyright (c) 2013, Saso Kiselkov. All rights reserved. + * Copyright (c) 2013, Joyent Inc. All rights reserved. + * Copyright (c) 2014, Nexenta Systems Inc. All rights reserved. + * Copyright (c) 2017, Intel Corporation. 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. */ #ifndef _KERNEL diff --git a/module/zcommon/zfs_prop.c b/module/zcommon/zfs_prop.c index 28fb8908a44f..920750199bf9 100644 --- a/module/zcommon/zfs_prop.c +++ b/module/zcommon/zfs_prop.c @@ -20,10 +20,12 @@ */ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2011, 2018 by Delphix. All rights reserved. - * Copyright (c) 2013 by Saso Kiselkov. All rights reserved. - * Copyright 2016, Joyent, Inc. - * Portions Copyright (c) 2019 by Klara Inc. + * Copyright (c) 2010, Robert Milkowski. All rights reserved. + * Copyright (c) 2011, 2018, Delphix. All rights reserved. + * Copyright (c) 2013, Saso Kiselkov. All rights reserved. + * Copyright (c) 2016, Joyent, Inc. All rights reserved. + * Copyright (c) 2019, Klara Inc. All rights reserved. + * Use is subject to license terms. */ /* Portions Copyright 2010 Robert Milkowski */ @@ -128,7 +130,7 @@ zfs_prop_init(void) { "lz4", ZIO_COMPRESS_LZ4 }, { "zstd", ZIO_COMPRESS_ZSTD }, { "zstd-fast", ZIO_COMPRESS_ZSTD | - (ZIO_ZSTD_LEVEL_FAST_1 << SPA_COMPRESSBITS) }, + (ZIO_ZSTD_LEVEL_FAST_DEFAULT << SPA_COMPRESSBITS) }, /* * ZSTD 1-19 are synthetic. We store the compression level in a * separate hidden property to avoid wasting a large amount of diff --git a/module/zfs/arc.c b/module/zfs/arc.c index e80df7a462a3..0f83f31aa5f4 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -21,13 +21,13 @@ /* * 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 . All rights reserved. - * Copyright (c) 2020, George Amanakis. All rights reserved. * Copyright (c) 2019, Klara Inc. All rights reserved. + * Copyright (c) 2020, George Amanakis. All rights reserved. */ /* diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c index be89e71ec6c5..2f3fc253eab6 100644 --- a/module/zfs/dbuf.c +++ b/module/zfs/dbuf.c @@ -18,12 +18,16 @@ * * CDDL HEADER END */ + /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright 2011 Nexenta Systems, Inc. All rights reserved. - * Copyright (c) 2012, 2019 by Delphix. All rights reserved. - * Copyright (c) 2013 by Saso Kiselkov. All rights reserved. - * Copyright (c) 2014 Spectra Logic Corporation, All rights reserved. + * Copyright (c) 2011, Nexenta Systems Inc. All rights reserved. + * Copyright (c) 2012, 2019, Delphix. All rights reserved. + * Copyright (c) 2013, Saso Kiselkov. All rights reserved. + * Copyright (c) 2014, Spectra Logic Corporation. 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. */ #include diff --git a/module/zfs/dmu_objset.c b/module/zfs/dmu_objset.c index 1bbfd311cf24..694f19003b0f 100644 --- a/module/zfs/dmu_objset.c +++ b/module/zfs/dmu_objset.c @@ -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 . 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 #include #include diff --git a/module/zfs/dmu_send.c b/module/zfs/dmu_send.c index c3733b0f25cf..ac39adfd3f3d 100644 --- a/module/zfs/dmu_send.c +++ b/module/zfs/dmu_send.c @@ -18,14 +18,18 @@ * * CDDL HEADER END */ + /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright 2011 Nexenta Systems, Inc. All rights reserved. - * Copyright (c) 2011, 2018 by Delphix. All rights reserved. - * Copyright (c) 2014, Joyent, Inc. All rights reserved. - * Copyright 2014 HybridCluster. All rights reserved. - * Copyright 2016 RackTop Systems. - * Copyright (c) 2016 Actifio, Inc. All rights reserved. + * Copyright (c) 2011, Nexenta Systems, Inc. All rights reserved. + * Copyright (c) 2011, 2018, Delphix. All rights reserved. + * Copyright (c) 2014, Joyent Inc. All rights reserved. + * Copyright (c) 2014, HybridCluster. All rights reserved. + * Copyright (c) 2016, RackTop Systems. All rights reserved. + * Copyright (c) 2016, Actifio Inc. 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. */ #include @@ -1956,7 +1960,6 @@ setup_featureflags(struct dmu_send_params *dspp, objset_t *os, *featureflags |= DMU_BACKUP_FEATURE_LZ4; } - /* XXX: Allan: should be able to use embedok without implying ZSTD */ if ((*featureflags & (DMU_BACKUP_FEATURE_EMBED_DATA | DMU_BACKUP_FEATURE_COMPRESSED | DMU_BACKUP_FEATURE_RAW)) != 0 && diff --git a/module/zfs/dsl_dataset.c b/module/zfs/dsl_dataset.c index eb227e44a385..d173bbc0fed9 100644 --- a/module/zfs/dsl_dataset.c +++ b/module/zfs/dsl_dataset.c @@ -21,13 +21,16 @@ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2011, 2018 by Delphix. All rights reserved. - * Copyright (c) 2014, Joyent, Inc. All rights reserved. - * Copyright (c) 2014 RackTop Systems. - * Copyright (c) 2014 Spectra Logic Corporation, All rights reserved. - * Copyright (c) 2016 Actifio, Inc. All rights reserved. - * Copyright 2016, OmniTI Computer Consulting, Inc. All rights reserved. - * Copyright 2017 Nexenta Systems, Inc. + * Copyright (c) 2011, 2018, Delphix. All rights reserved. + * Copyright (c) 2014, Joyent Inc. All rights reserved. + * Copyright (c) 2014, RackTop Systems. All rights reserved. + * Copyright (c) 2014, Spectra Logic Corporation. All rights reserved. + * Copyright (c) 2016, Actifio Inc. All rights reserved. + * Copyright (c) 2016, OmniTI Computer Consulting Inc. All rights reserved. + * Copyright (c) 2017, Nexenta Systems Inc. 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. */ #include diff --git a/module/zfs/spa_misc.c b/module/zfs/spa_misc.c index 7357e14ce027..5b26633e1384 100644 --- a/module/zfs/spa_misc.c +++ b/module/zfs/spa_misc.c @@ -62,6 +62,7 @@ #include #include #include +#include /* * SPA locking diff --git a/module/zfs/zcp_get.c b/module/zfs/zcp_get.c index 78b2d20e0e94..4b0e73324e70 100644 --- a/module/zfs/zcp_get.c +++ b/module/zfs/zcp_get.c @@ -14,7 +14,10 @@ */ /* - * Copyright (c) 2016 by Delphix. All rights reserved. + * Copyright (c) 2016, Delphix. 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. */ #include diff --git a/module/zfs/zio.c b/module/zfs/zio.c index 24202610bc11..5cab4ceb6966 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -18,11 +18,15 @@ * * CDDL HEADER END */ + /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2011, 2019 by Delphix. All rights reserved. - * Copyright (c) 2011 Nexenta Systems, Inc. All rights reserved. - * Copyright (c) 2017, Intel Corporation. + * Copyright (c) 2011, 2019, Delphix. All rights reserved. + * Copyright (c) 2011, Nexenta Systems Inc. All rights reserved. + * Copyright (c) 2017, Intel Corporation. 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. */ #include diff --git a/module/zfs/zio_compress.c b/module/zfs/zio_compress.c index 6f4ef246b7cb..02eac01f2844 100644 --- a/module/zfs/zio_compress.c +++ b/module/zfs/zio_compress.c @@ -20,22 +20,20 @@ */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Copyright (c) 2009, Sun Microsystems Inc. All rights reserved. + * Copyright (c) 2013, Saso Kiselkov. All rights reserved. + * Copyright (c) 2013, 2018, Delphix. 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. */ -/* - * Copyright (c) 2013 by Saso Kiselkov. All rights reserved. - */ - -/* - * Copyright (c) 2013, 2018 by Delphix. All rights reserved. - */ #include #include #include #include #include +#include /* * If nonzero, every 1/X decompression attempts will fail, simulating @@ -62,9 +60,8 @@ zio_compress_info_t zio_compress_table[ZIO_COMPRESS_FUNCTIONS] = { {"gzip-8", 8, gzip_compress, gzip_decompress, NULL}, {"gzip-9", 9, gzip_compress, gzip_decompress, NULL}, {"zle", 64, zle_compress, zle_decompress, NULL}, - {"lz4", 0, lz4_compress_zfs, lz4_decompress_zfs, - NULL}, - {"zstd", ZIO_ZSTD_LEVEL_DEFAULT, zstd_compress, zstd_decompress, + {"lz4", 0, lz4_compress_zfs, lz4_decompress_zfs, NULL}, + {"zstd", ZIO_ZSTD_LEVEL_DEFAULT, zstd_compress, zstd_decompress, zstd_decompress_level}, }; diff --git a/module/zstd/zstd.c b/module/zstd/zstd.c index adb837c8f43a..7f8f2670166a 100644 --- a/module/zstd/zstd.c +++ b/module/zstd/zstd.c @@ -1,34 +1,29 @@ /* - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * CDDL HEADER START * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * - * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer - * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END */ /* - * Copyright (c) 2016-2018 by Klara Systems Inc. - * Copyright (c) 2016-2018 Allan Jude - * Copyright (c) 2018-2019 Sebastian Gottschall + * Copyright (c) 2016-2018, Klara Systems Inc. All rights reserved. + * Copyright (c) 2016-2018, Allan Jude. All rights reserved. + * Copyright (c) 2018-2019, Sebastian Gottschall. All rights reserved. + * Copyright (c) 2019, Michael Niewöhner. All rights reserved. */ #include diff --git a/scripts/zfs.sh b/scripts/zfs.sh index 9668ca7a47da..e676fc295fa8 100755 --- a/scripts/zfs.sh +++ b/scripts/zfs.sh @@ -82,8 +82,8 @@ check_modules_linux() { LOADED_MODULES="" MISSING_MODULES="" - for KMOD in $KMOD_SPL $KMOD_ZAVL $KMOD_ZNVPAIR \ - $KMOD_ZUNICODE $KMOD_ZCOMMON $KMOD_ZLUA $KMOD_ICP $KMOD_ZFS; do + for KMOD in $KMOD_SPL $KMOD_ZAVL $KMOD_ZNVPAIR $KMOD_ZUNICODE $KMOD_ZCOMMON \ + $KMOD_ZLUA $KMOD_ZZSTD $KMOD_ICP $KMOD_ZFS; do NAME=$(basename "$KMOD" .ko) if lsmod | grep -E -q "^${NAME}"; then @@ -152,7 +152,8 @@ load_modules_linux() { fi for KMOD in $KMOD_SPL $KMOD_ZAVL $KMOD_ZNVPAIR \ - $KMOD_ZUNICODE $KMOD_ZCOMMON $KMOD_ZLUA $KMOD_ZZSTD $KMOD_ICP $KMOD_ZFS; do + $KMOD_ZUNICODE $KMOD_ZCOMMON $KMOD_ZLUA $KMOD_ZZSTD \ + $KMOD_ICP $KMOD_ZFS; do load_module_linux "$KMOD" || return 1 done @@ -190,8 +191,8 @@ unload_modules_freebsd() { } unload_modules_linux() { - for KMOD in $KMOD_ZFS $KMOD_ICP $KMOD_ZZSTD $KMOD_ZLUA $KMOD_ZCOMMON $KMOD_ZUNICODE \ - $KMOD_ZNVPAIR $KMOD_ZAVL $KMOD_SPL; do + for KMOD in $KMOD_ZFS $KMOD_ICP $KMOD_ZZSTD $KMOD_ZLUA $KMOD_ZCOMMON \ + $KMOD_ZUNICODE $KMOD_ZNVPAIR $KMOD_ZAVL $KMOD_SPL; do NAME=$(basename "$KMOD" .ko) USE_COUNT=$(lsmod | grep -E "^${NAME} " | awk '{print $3}') diff --git a/tests/zfs-tests/include/properties.shlib b/tests/zfs-tests/include/properties.shlib index 42be80122e84..6d467b60051d 100644 --- a/tests/zfs-tests/include/properties.shlib +++ b/tests/zfs-tests/include/properties.shlib @@ -13,14 +13,9 @@ # Copyright (c) 2012, 2016, Delphix. All rights reserved. # -<<<<<<< HEAD . $STF_SUITE/include/libtest.shlib -typeset -a compress_prop_vals=('off' 'lzjb' 'lz4' 'gzip' 'zle') -======= - typeset -a compress_prop_vals=('off' 'lzjb' 'lz4' 'gzip' 'zle' 'zstd') ->>>>>>> add zstd compression typeset -a checksum_prop_vals=('on' 'off' 'fletcher2' 'fletcher4' 'sha256' 'noparity' 'sha512' 'skein') if ! is_freebsd; then diff --git a/tests/zfs-tests/tests/functional/history/history_002_pos.ksh b/tests/zfs-tests/tests/functional/history/history_002_pos.ksh index fb28fefb7e6c..c307af8b91f5 100755 --- a/tests/zfs-tests/tests/functional/history/history_002_pos.ksh +++ b/tests/zfs-tests/tests/functional/history/history_002_pos.ksh @@ -86,10 +86,9 @@ props=( canmount off canmount on xattr on xattr off compression gzip compression gzip-$((RANDOM%9 + 1)) - compression zstd compression zstd-$((RANDOM%9 + 1)) - compression zstd-fast + compression zstd compression zstd-$((RANDOM%9 + 1)) + compression zstd-fast copies $((RANDOM%3 + 1)) compression zstd-fast-$((RANDOM%9 + 1)) - copies $((RANDOM%3 + 1)) ) elif is_freebsd; then # property value property value