]> git.proxmox.com Git - mirror_zfs.git/commit - man/man5/zpool-features.5
Illumos #3035 LZ4 compression support in ZFS and GRUB
authorEric Dillmann <eric@jave.fr>
Wed, 23 Jan 2013 09:54:30 +0000 (10:54 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 29 Jan 2013 17:28:20 +0000 (09:28 -0800)
commit9759c60f1a1503e48dc5c45a209c3edd5758319f
treead56536c5e57c831f38f4b0df81f816470f28c1c
parentff5b1c8065c8a43add534892172f0aa5aba90f3d
Illumos #3035 LZ4 compression support in ZFS and GRUB

3035 LZ4 compression support in ZFS and GRUB

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Christopher Siden <csiden@delphix.com>

References:
  illumos/illumos-gate@a6f561b4aee75d0d028e7b36b151c8ed8a86bc76
  https://www.illumos.org/issues/3035
  http://wiki.illumos.org/display/illumos/LZ4+Compression+In+ZFS

This patch has been slightly modified from the upstream Illumos
version to be compatible with Linux.  Due to the very limited
stack space in the kernel a lz4 workspace kmem cache is used.
Since we are using gcc we are also able to take advantage of the
gcc optimized __builtin_ctz functions.

Support for GRUB has been dropped from this patch.  That code
is available but those changes will need to made to the upstream
GRUB package.

Lastly, several hunks of dead code were dropped for clarity.  They
include the functions real_LZ4_uncompress(), LZ4_compressBound()
and the Visual Studio specific hunks wrapped in _MSC_VER.

Ported-by: Eric Dillmann <eric@jave.fr>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1217
13 files changed:
include/sys/zio.h
include/sys/zio_compress.h
include/zfeature_common.h
lib/libzpool/Makefile.am
man/man5/zpool-features.5
man/man8/zfs.8
module/zcommon/zfs_prop.c
module/zfs/Makefile.in
module/zfs/lz4.c [new file with mode: 0644]
module/zfs/zfeature_common.c
module/zfs/zfs_ioctl.c
module/zfs/zio.c
module/zfs/zio_compress.c