Skip to content

Commit

Permalink
fix copyright notices
Browse files Browse the repository at this point in the history
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
4 people committed May 1, 2020
1 parent 60fe768 commit e045d7e
Show file tree
Hide file tree
Showing 19 changed files with 133 additions and 124 deletions.
7 changes: 5 additions & 2 deletions include/sys/arc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 11 additions & 8 deletions include/sys/spa.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 7 additions & 4 deletions include/sys/zio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 5 additions & 17 deletions include/sys/zio_compress.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
Expand Down
13 changes: 8 additions & 5 deletions module/zcommon/zfeature_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions module/zcommon/zfs_prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions module/zfs/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>. 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.
*/

/*
Expand Down
12 changes: 8 additions & 4 deletions module/zfs/dbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sys/zfs_context.h>
Expand Down
22 changes: 12 additions & 10 deletions module/zfs/dmu_objset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
17 changes: 10 additions & 7 deletions module/zfs/dmu_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sys/dmu.h>
Expand Down Expand Up @@ -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 &&
Expand Down
17 changes: 10 additions & 7 deletions module/zfs/dsl_dataset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sys/dmu_objset.h>
Expand Down
1 change: 1 addition & 0 deletions module/zfs/spa_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
#include <sys/btree.h>
#include <sys/zfeature.h>
#include <sys/qat.h>
#include <sys/zstd/zstd.h>

/*
* SPA locking
Expand Down
5 changes: 4 additions & 1 deletion module/zfs/zcp_get.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sys/lua/lua.h>
Expand Down
10 changes: 7 additions & 3 deletions module/zfs/zio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sys/sysmacros.h>
Expand Down
19 changes: 8 additions & 11 deletions module/zfs/zio_compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sys/zfs_context.h>
#include <sys/spa.h>
#include <sys/zfeature.h>
#include <sys/zio.h>
#include <sys/zio_compress.h>
#include <sys/zstd/zstd.h>

/*
* If nonzero, every 1/X decompression attempts will fail, simulating
Expand All @@ -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},
};

Expand Down
Loading

0 comments on commit e045d7e

Please sign in to comment.