freebsd-dev/module/zfs/Makefile.in
Eric Dillmann 9759c60f1a 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@a6f561b4ae
  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
2013-01-29 09:28:20 -08:00

96 lines
4.7 KiB
Makefile

MODULE := zfs
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@
obj-$(CONFIG_ZFS) := $(MODULE).o
$(MODULE)-objs += @top_srcdir@/module/zfs/arc.o
$(MODULE)-objs += @top_srcdir@/module/zfs/bplist.o
$(MODULE)-objs += @top_srcdir@/module/zfs/bpobj.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dbuf.o
$(MODULE)-objs += @top_srcdir@/module/zfs/bptree.o
$(MODULE)-objs += @top_srcdir@/module/zfs/ddt.o
$(MODULE)-objs += @top_srcdir@/module/zfs/ddt_zap.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_diff.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_object.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_objset.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_send.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_traverse.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_tx.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_zfetch.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dnode.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dnode_sync.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_dataset.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_deadlist.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_deleg.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_dir.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_pool.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_prop.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_scan.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_synctask.o
$(MODULE)-objs += @top_srcdir@/module/zfs/fm.o
$(MODULE)-objs += @top_srcdir@/module/zfs/gzip.o
$(MODULE)-objs += @top_srcdir@/module/zfs/lzjb.o
$(MODULE)-objs += @top_srcdir@/module/zfs/lz4.o
$(MODULE)-objs += @top_srcdir@/module/zfs/metaslab.o
$(MODULE)-objs += @top_srcdir@/module/zfs/refcount.o
$(MODULE)-objs += @top_srcdir@/module/zfs/rrwlock.o
$(MODULE)-objs += @top_srcdir@/module/zfs/sa.o
$(MODULE)-objs += @top_srcdir@/module/zfs/sha256.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_boot.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_config.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_errlog.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_history.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_misc.o
$(MODULE)-objs += @top_srcdir@/module/zfs/space_map.o
$(MODULE)-objs += @top_srcdir@/module/zfs/txg.o
$(MODULE)-objs += @top_srcdir@/module/zfs/uberblock.o
$(MODULE)-objs += @top_srcdir@/module/zfs/unique.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_cache.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_disk.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_file.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_label.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_mirror.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_missing.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_queue.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_raidz.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_root.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zap.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zap_leaf.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zap_micro.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfeature.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfeature_common.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_acl.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_byteswap.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_ctldir.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_debug.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_dir.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_fm.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_fuid.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_ioctl.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_log.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_onexit.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_replay.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_rlock.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_sa.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_vfsops.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_vnops.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_znode.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zil.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zio.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_checksum.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_compress.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_inject.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zle.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_ctldir.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_export.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_file.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_inode.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_super.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_xattr.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zrlock.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zvol.o