ef17620fc8
* Illumos zfs issue #3035 [1] LZ4 compression support in ZFS. LZ4 is a new high-speed BSD-licensed compression algorithm created by Yann Collet that delivers very high compression and decompression performance compared to lzjb (>50% faster on compression, >80% faster on decompression and around 3x faster on compression of incompressible data), while giving better compression ratio [1]. This version of LZ4 corresponds to upstream's [2] revision 85. Please note that for obvious reasons this is not backward read compatible. This means once a pool have LZ4 compressed data, these data can no longer be read by older ZFS implementations. Local changes: - On-stack hash table disabled and using kernel slab allocator instead, at this time. This requires larger kernel thread stack for zio workers. This may change in the future should we adjusted the zio workers' thread stack size. - likely and unlikely will be undefined if they are already defined, this is required for i386 XEN build. - Removed De Bruijn sequence based __builtin_ctz family of builtins in favor of the latter. Both GCC and clang supports these builtins. - Changed the way the LZ4 code detects endianness. - Manual pages modifications to mention the feature based on Illumos counterpart. - Boot loader changes to make it support LZ4 decompression. [1] https://www.illumos.org/issues/3035 [2] http://code.google.com/p/lz4/source/list Obtained from: Illumos (13921:9d721847e469) Tested on: FreeBSD/amd64 MFC after: 1 month
130 lines
2.6 KiB
Makefile
130 lines
2.6 KiB
Makefile
#
|
|
# CDDL HEADER START
|
|
#
|
|
# 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.
|
|
#
|
|
# 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.
|
|
#
|
|
# 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) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
|
|
# Copyright (c) 2012 by Delphix. All rights reserved.
|
|
# Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
|
|
#
|
|
#
|
|
# This Makefile defines all file modules for the directory uts/common
|
|
# and its children. These are the source files which may be considered
|
|
# common to all SunOS systems.
|
|
|
|
ZFS_COMMON_OBJS += \
|
|
arc.o \
|
|
bplist.o \
|
|
bpobj.o \
|
|
bptree.o \
|
|
dbuf.o \
|
|
ddt.o \
|
|
ddt_zap.o \
|
|
dmu.o \
|
|
dmu_diff.o \
|
|
dmu_send.o \
|
|
dmu_object.o \
|
|
dmu_objset.o \
|
|
dmu_traverse.o \
|
|
dmu_tx.o \
|
|
dnode.o \
|
|
dnode_sync.o \
|
|
dsl_dir.o \
|
|
dsl_dataset.o \
|
|
dsl_deadlist.o \
|
|
dsl_pool.o \
|
|
dsl_synctask.o \
|
|
dmu_zfetch.o \
|
|
dsl_deleg.o \
|
|
dsl_prop.o \
|
|
dsl_scan.o \
|
|
zfeature.o \
|
|
gzip.o \
|
|
lz4.o \
|
|
lzjb.o \
|
|
metaslab.o \
|
|
refcount.o \
|
|
sa.o \
|
|
sha256.o \
|
|
spa.o \
|
|
spa_config.o \
|
|
spa_errlog.o \
|
|
spa_history.o \
|
|
spa_misc.o \
|
|
space_map.o \
|
|
txg.o \
|
|
uberblock.o \
|
|
unique.o \
|
|
vdev.o \
|
|
vdev_cache.o \
|
|
vdev_file.o \
|
|
vdev_label.o \
|
|
vdev_mirror.o \
|
|
vdev_missing.o \
|
|
vdev_queue.o \
|
|
vdev_raidz.o \
|
|
vdev_root.o \
|
|
zap.o \
|
|
zap_leaf.o \
|
|
zap_micro.o \
|
|
zfs_byteswap.o \
|
|
zfs_debug.o \
|
|
zfs_fm.o \
|
|
zfs_fuid.o \
|
|
zfs_sa.o \
|
|
zfs_znode.o \
|
|
zil.o \
|
|
zio.o \
|
|
zio_checksum.o \
|
|
zio_compress.o \
|
|
zio_inject.o \
|
|
zle.o \
|
|
zrlock.o
|
|
|
|
ZFS_SHARED_OBJS += \
|
|
zfeature_common.o \
|
|
zfs_comutil.o \
|
|
zfs_deleg.o \
|
|
zfs_fletcher.o \
|
|
zfs_namecheck.o \
|
|
zfs_prop.o \
|
|
zpool_prop.o \
|
|
zprop_common.o
|
|
|
|
ZFS_OBJS += \
|
|
$(ZFS_COMMON_OBJS) \
|
|
$(ZFS_SHARED_OBJS) \
|
|
zfs_acl.o \
|
|
zfs_ctldir.o \
|
|
zfs_dir.o \
|
|
zfs_ioctl.o \
|
|
zfs_ioctl_compat.o \
|
|
zfs_log.o \
|
|
zfs_onexit.o \
|
|
zfs_replay.o \
|
|
zfs_rlock.o \
|
|
rrwlock.o \
|
|
zfs_vfsops.o \
|
|
zfs_vnops.o \
|
|
zvol.o
|
|
|
|
ZUT_OBJS += \
|
|
zut.o
|