debian/0000775000000000000000000000000012737004516007175 5ustar debian/spl.install0000664000000000000000000000004212614153434011355 0ustar etc/hostid usr/sbin usr/share/man debian/changelog0000664000000000000000000001776612737001267011070 0ustar spl-linux (0.6.5.6-0ubuntu4) xenial; urgency=medium * Fix do_div() types in condvar:timeout (LP: #1599219) - The do_div() macro expects unsigned types and this is detected in powerpc implementation of do_div(). * Only perform dep8 tests on real hardware (LP: #1599221) - Add isolation-machine to tests/control Restrictions as we need to insert/remove the spl kernel module. - Also restrict spl tests to 64 bit systems and don't run on 32 bit architectures. - Limit large memory splat tests on systems with plenty of memory to accommodate the tests. * Fix dep8 splat test, should be kmem:slab_align and not slab_align in the SPLAT_TESTS large memory test case (LP: #1599259) -- Colin Ian King Tue, 05 Jul 2016 19:51:41 +0100 spl-linux (0.6.5.6-0ubuntu3) xenial; urgency=medium * Enable the spl/splat tests to exercise the SPL kernel module (LP: #1579036) -- Colin Ian King Fri, 06 May 2016 12:45:12 +0100 spl-linux (0.6.5.6-0ubuntu2) xenial; urgency=medium * Force dkms autopkgtest, such that modules are installed even if stock kernel comes with identical module tool. We are testing that dkms module can be forced on top of pre-compiled ones. -- Dimitri John Ledkov Thu, 07 Apr 2016 11:08:14 +0100 spl-linux (0.6.5.6-0ubuntu1) xenial; urgency=medium * Sync with upstream 0.6.5.6 release Remove s390x patch now that it is in 0.6.5.6 Remove incorrect Vcs fields from debian/control Rename patch Add-COPPYING-to-EXTRA_DIST to Add-COPYING-to-EXTRA_DIST -- Colin Ian King Wed, 23 Mar 2016 23:43:09 +0000 spl-linux (0.6.5.5-0ubuntu1~testing1) xenial; urgency=medium * Sync with upstream 0.6.5.5 release -- Colin Ian King Mon, 21 Mar 2016 10:57:18 +0000 spl-linux (0.6.5.4-0ubuntu3) xenial; urgency=medium * Cherry-pick patch for s390x. -- Dimitri John Ledkov Thu, 17 Mar 2016 09:49:09 +0000 spl-linux (0.6.5.4-0ubuntu2) xenial; urgency=medium * Add COPYING to EXTRA_DIST var so COPYING file lands in package * Debian/rules; Don't remove COPYING as we want in the kernel source -- Colin Ian King Thu, 4 Feb 2016 15:58:12 +0000 spl-linux (0.6.5.4-0ubuntu1) xenial; urgency=medium * Sync with upstream 0.6.5.4 release -- Colin Ian King Fri, 29 Jan 2016 11:48:00 +0000 spl-linux (0.6.5.3-0ubuntu3) xenial; urgency=medium * Fix build failure of SPL because libc-dev is missing (LP: #1536299) -- Colin Ian King Wed, 20 Jan 2016 19:05:29 +0000 spl-linux (0.6.5.3-0ubuntu2) xenial; urgency=medium * Build powerpc64-smp -- Tim Gardner Fri, 06 Nov 2015 15:11:34 -0600 spl-linux (0.6.5.3-0ubuntu1) xenial; urgency=medium * Updated to spl-0.6.5.3 from https://github.com/zfsonlinux/spl.git -- Tim Gardner Wed, 28 Oct 2015 08:18:50 -0600 spl-linux (0.6.4.2-0ubuntu1) wily; urgency=medium [ Colin Ian King ] * minor lintian fixes on debian/copyright * prepare for Ubuntu Wily upload [ Iain Lane ] * Copy debian/copyright over from Debian as it is slightly different and more current. -- Colin Ian King Wed, 14 Oct 2015 15:46:18 +0100 spl-linux (0.6.4.2-0~vivid) vivid; urgency=low [ Ned Bass ] * Tag spl-0.6.4.2 (detached) -- Darik Horn Thu, 09 Jul 2015 22:18:37 -0400 spl-linux (0.6.4.1-1~vivid) vivid; urgency=low [ Brian Behlendorf ] * Tag spl-0.6.4.1 -- Darik Horn Fri, 24 Apr 2015 16:26:17 -0500 spl-linux (0.6.4-2~vivid) vivid; urgency=low [ Tim Chase ] * Safer debugging and assertion macros. [ Brian Behlendorf ] * Rate limit debugging stack traces [ Tim Chase ] * Add functions and macros as used upstream. * Add atomic_swap_32() and atomic_swap_64() [ Brian Behlendorf ] * Set spl_kmem_cache_reclaim=0 to default * Set spl_kmem_cache_slab_limit=16384 to default [ Ned Bass ] * Linux 3.17 compat: remove wait_on_bit action function [ Richard Yao ] * Cleanup vn_rename() and vn_remove() [ stf ] * Avoid PAGESIZE redefinition [ Turbo Fredriksson ] * Linux 3.16 compat: smp_mb__after_clear_bit() [ Brian Behlendorf ] * Fix bug in SPLAT taskq:front [ Tom Prince ] * Install header during post-build rather than post-install. [ Brian Behlendorf ] * Make license compatibility checks consistent * Update SPLAT to use kmutex_t for portability * Update code to use misc_register()/misc_deregister() * Remove patches directory * Remove adaptive mutex implementation * Remove sysctl_vfs_cache_pressure assumption * Remove utsname() wrapper * Remove register_sysctl() compatibility code * Remove CTL_UNNUMBERED sysctl interface * Map highbit64() to fls64() * Simplify the time compatibility wrappers * Remove atomic64_xchg() wrappers * Remove uintptr_t typedef * Remove linux/uaccess.h header check * Remove kmalloc_node() compatibility code * Remove i_mutex() configure check * Remove mutex_lock_nested() wrapper * Remove on_each_cpu() wrapper * Remove get_vmalloc_info() wrapper * Remove global memory variables * Remove shrink_{i,d}node_cache() wrappers * Remove kallsyms_lookup_name() wrapper * Remove user_path_dir() wrapper * Remove set_fs_pwd() configure check * Add vfs_unlink() and vfs_rename() comments * Remove credential configure checks. * Update put_task_struct() comments * Remove proc_handler() wrapper * Remove kvasprintf() wrapper * Remove kern_path() wrapper * Remove vfs_fsync() wrapper [ Tim Chase ] * Linux 3.12 compat: shrinker semantics [ Richard Yao ] * kmem_cache: Call constructor/destructor on each alloc/free * Kernel header installation should respect --prefix [ Alexander Pyhalov ] * Fix modules installation directory [ Marcel Wysocki ] * Add config/compile to config/.gitignore [ Brian Behlendorf ] * Lower minimum objects/slab threshold * Retire legacy debugging infrastructure [ Ned Bass ] * Remove compat includes from sys/types.h [ Chunwei Chen ] * mutex: force serialization on mutex_exit() to fix races [ Brian Behlendorf ] * Fix debug object on stack warning [ Tim Chase ] * Use current_kernel_time() in the time compatibility wrappers [ Richard Yao ] * Revert "Add PF_NOFS debugging flag" [ Brian Behlendorf ] * Refactor existing code * Fix kmem cstyle issues * Refactor generic memory allocation interfaces [ Richard Yao ] * Add hooks for disabling direct reclaim * Enforce architecture-specific barriers around clear_bit() [ Brian Behlendorf ] * Make slab reclaim more aggressive * Update spl-module-parameters(5) man page * Reduce kmem cache deadlock threshold * Refine slab cache sizing * Fix kmem cache deadlock logic * Use __get_free_pages() for emergency objects * Fix GFP_KERNEL allocations flags * Optimize vmem_alloc() retry path [ Chunwei Chen ] * Fix spl_hostid module parameter [ Brian Behlendorf ] * Retire spl_module_init()/spl_module_fini() * Fix cstyle issue in mutex.h * Retire MUTEX_OWNER checks * Add MUTEX_FSTRANS mutex type * Reduce splat_taskq_test2_impl() stack frame size [ Tim Chase ] * Add mutex_enter_nested() which maps to mutex_lock_nested() * Set HAVE_FS_STRUCT_SPINLOCK correctly when CONFIG_FRAME_WARN==1024 [ Hajo Möller ] * Fix warning about AM_INIT_AUTOMAKE arguments [ Brian Behlendorf ] * Remove rpm/fedora directory * Add RHEL style kmod packages [ Chris Dunlop ] * Add crgetzoneid() stub [ Tim Chase ] * Don't allow shrinking a PF_FSTRANS context [ Brian Behlendorf ] * Clear PF_FSTRANS over vfs_sync() * Tag spl-0.6.4 -- Darik Horn Thu, 09 Apr 2015 12:23:49 -0500 spl-linux (0.6.3-14~vivid) vivid; urgency=low [ Brian Behlendorf ] * Tag spl-0.6.3-1.2 [ Darik Horn ] * Update gbp.conf for Ubuntu 15.04 Vivid Vervet -- Darik Horn Sat, 21 Feb 2015 13:09:56 -0500 debian/patches/0000775000000000000000000000000012736755173010637 5ustar debian/patches/0002-Add-COPYING-to-EXTRA_DIST0000664000000000000000000000075012654663252015060 0ustar Index: spl-linux-0.6.5.4/Makefile.am =================================================================== --- spl-linux-0.6.5.4.orig/Makefile.am +++ spl-linux-0.6.5.4/Makefile.am @@ -20,7 +20,7 @@ nodist_kernel_HEADERS = spl.release spl_ endif AUTOMAKE_OPTIONS = foreign -EXTRA_DIST = autogen.sh META DISCLAIMER copy-builtin +EXTRA_DIST = autogen.sh META DISCLAIMER copy-builtin COPYING EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am distclean-local:: debian/patches/series0000664000000000000000000000020412736755170012045 0ustar # 0001-Revert-Remove-etc-hostid-missing-warning.patch 0002-Add-COPYING-to-EXTRA_DIST 0003-Fix-do_div-types-in-condvar-timeout.patch debian/patches/0001-Revert-Remove-etc-hostid-missing-warning.patch0000664000000000000000000000272312614155435022105 0ustar Description: Revert "Remove /etc/hostid missing warning" From 7559daf38acc293474d3d2a13ecf746bc7507a11 Mon Sep 17 00:00:00 2001 From: Darik Horn Date: Tue, 11 Oct 2011 18:32:58 -0500 Subject: [PATCH 1/2] Revert "Remove /etc/hostid missing warning" This reverts commit 6b3b569df30d13ed7bbbff877cffc71290a52f12. . spl-linux (0.6.5.3-0ubuntu1) xenial; urgency=medium . * Updated to spl-0.6.5.3 from https://github.com/zfsonlinux/spl.git Author: Tim Gardner --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- spl-linux-0.6.5.3.orig/module/spl/spl-generic.c +++ spl-linux-0.6.5.3/module/spl/spl-generic.c @@ -416,8 +416,12 @@ hostid_read(void) file = kobj_open_file(spl_hostid_path); - if (file == (struct _buf *)-1) + if (file == (struct _buf *)-1) { + printk(KERN_WARNING + "SPL: The %s file is not found.\n", + spl_hostid_path); return -1; + } result = kobj_get_filesize(file, &size); debian/patches/0003-Fix-do_div-types-in-condvar-timeout.patch0000664000000000000000000000372312736755145021120 0ustar From 66e89c1119f6cbb54d93c3d8dae6ed5d0b930557 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 22 Dec 2015 09:26:10 -0800 Subject: [PATCH] Fix do_div() types in condvar:timeout The do_div() macro expects unsigned types and this is detected in powerpc implementation of do_div(). Signed-off-by: Brian Behlendorf Closes #516 --- module/splat/splat-condvar.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/module/splat/splat-condvar.c b/module/splat/splat-condvar.c index 3ffa1c7..bdbaf79 100644 --- a/module/splat/splat-condvar.c +++ b/module/splat/splat-condvar.c @@ -413,8 +413,8 @@ splat_condvar_test5(struct file *file, void *arg) kcondvar_t condvar; kmutex_t mtx; clock_t time_left, time_before, time_after, time_delta; - int64_t whole_delta; - int32_t remain_delta; + uint64_t whole_delta; + uint32_t remain_delta; int rc = 0; mutex_init(&mtx, SPLAT_CONDVAR_TEST_NAME, MUTEX_DEFAULT, NULL); @@ -438,19 +438,20 @@ splat_condvar_test5(struct file *file, void *arg) splat_vprint(file, SPLAT_CONDVAR_TEST5_NAME, "Thread correctly timed out and was asleep " "for %d.%d seconds (%d second min)\n", - (int)whole_delta, remain_delta, 1); + (int)whole_delta, (int)remain_delta, 1); } else { splat_vprint(file, SPLAT_CONDVAR_TEST5_NAME, "Thread correctly timed out but was only " "asleep for %d.%d seconds (%d second " - "min)\n", (int)whole_delta, remain_delta, 1); + "min)\n", (int)whole_delta, + (int)remain_delta, 1); rc = -ETIMEDOUT; } } else { splat_vprint(file, SPLAT_CONDVAR_TEST5_NAME, "Thread exited after only %d.%d seconds, it " "did not hit the %d second timeout\n", - (int)whole_delta, remain_delta, 1); + (int)whole_delta, (int)remain_delta, 1); rc = -ETIMEDOUT; } -- 2.8.1 debian/control0000664000000000000000000000221712674625041010604 0ustar Source: spl-linux Section: kernel Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Darik Horn Build-Depends: autotools-dev, autoconf, autogen, automake, debhelper (>= 8), dh-autoreconf, dkms (>= 2.2.0.2), libtool, Standards-Version: 3.9.6 Homepage: http://www.zfsonlinux.org/ Package: spl-dkms Architecture: any Depends: ${misc:Depends}, libc-dev, dkms (>= 2.2.0.2), file, lsb-release Recommends: spl Description: Solaris Porting Layer kernel modules for Linux The Solaris Porting Layer (SPL) is a Linux kernel module which provides many of the Solaris kernel APIs. This shim layer makes it possible to run Solaris kernel code in the Linux kernel with relatively minimal modification. . The Solaris Porting LAyer Tests (SPLAT) is a Linux kernel module which provides a testing harness for the SPL module. Package: spl Architecture: any Conflicts: spl-dev Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: spl-dkms Description: Solaris Porting Layer utilities for Linux This package provides the userspace utilities for the SPL and SPLAT Linux kernel modules. debian/tests/0000775000000000000000000000000012737001061010327 5ustar debian/tests/control0000664000000000000000000000014212736754233011746 0ustar Tests: dkms-test check.sh Restrictions: needs-root, allow-stderr, isolation-machine Depends: dkms debian/tests/dkms-test0000775000000000000000000000030112713103400012154 0ustar #!/bin/sh set -e cat </usr/local/bin/dkms #!/bin/sh set -e /usr/sbin/dkms --force "\$@" EOF chmod +x /usr/local/bin/dkms /usr/lib/dkms/dkms-autopkgtest rm --force /usr/local/bin/dkms debian/tests/check.sh0000775000000000000000000000702312737001061011745 0ustar #!/bin/bash ############################################################################### # Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC. # Copyright (C) 2007 The Regents of the University of California. # Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). # Written by Brian Behlendorf . # UCRL-CODE-235197 # # This file is part of the SPL, Solaris Porting Layer. # For details, see . # # The SPL is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the License, or (at your # option) any later version. # # The SPL is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License along # with the SPL. If not, see . ############################################################################### # This script runs the full set of regression tests. ############################################################################### prog=check.sh spl_module=spl splat_module=splat splat_cmd=/usr/sbin/splat # # The following subset work in a timely way and don't time out # when running inside a VM with < 4GB of memory # SPLAT_TESTS=\ "kmem:kmem_alloc kmem:kmem_zalloc kmem:vmem_alloc "\ "kmem:vmem_zalloc kmem:slab_small "\ "kmem:slab_reap kmem:slab_age "\ "kmem:slab_lock taskq:single taskq:multiple "\ "taskq:system taskq:wait taskq:front taskq:recurse "\ "taskq:contention taskq:delay taskq:cancel taskq:dynamic "\ "krng:all mutex:all condvar:all thread:all rwlock:all "\ "time:all vnode:all kobj:all atomic:all list:all "\ "generic:all cred:all zlib:all linux:all" memtotal=$(grep "MemTotal" /proc/meminfo | awk '{print $2}') if [ ! -z $memtotal ]; then if [ $memtotal -gt 4194304 ]; then SPLAT_TESTS="kmem:slab_large kmem:slab_align $SPLAT_TESTS" fi fi tests="" for t in ${SPLAT_TESTS} do tests="${tests} -t $t" done die() { echo "${prog}: $1" >&2 exit 1 } warn() { echo "${prog}: $1" >&2 } if [ $(getconf LONG_BIT) != 64 ]; then echo "Skipping test, only valid for 64 bit architectures" exit 0 fi if [ -n "$V" ]; then verbose="-v" fi if [ $(id -u) != 0 ]; then die "Must run as root" fi if /sbin/lsmod | egrep -q "^spl|^splat"; then die "Must start with spl modules unloaded" fi #if [ ! -f ${spl_module} ] || [ ! -f ${splat_module} ]; then # die "Source tree must be built, run 'make'" #fi /sbin/modprobe zlib_inflate &>/dev/null /sbin/modprobe zlib_deflate &>/dev/null echo "Loading ${spl_module}" /sbin/modprobe ${spl_module} || die "Failed to load ${spl_module}" echo "Loading ${splat_module}" /sbin/modprobe ${splat_module} || die "Unable to load ${splat_module}" # Wait a maximum of 3 seconds for udev to detect the new splatctl # device, if we do not see the character device file created assume # udev is not running and manually create the character device. for i in `seq 1 50`; do sleep 0.1 if [ -c /dev/splatctl ]; then break fi if [ $i -eq 50 ]; then mknod /dev/splatctl c 229 0 fi done $splat_cmd --nocolor $tests $verbose echo "Unloading ${splat_module}" /sbin/modprobe -r ${splat_module} || die "Failed to unload ${splat_module}" echo "Unloading ${spl_module}" /sbin/modprobe -r ${spl_module} || die "Unable to unload ${spl_module}" exit 0 debian/spl-dkms.install0000664000000000000000000000014712614153434012317 0ustar usr/src/spl-*/AUTHORS usr/share/doc/spl-dkms/ usr/src/spl-*/DISCLAIMER usr/share/doc/spl-dkms/ usr/src debian/gbp.conf0000664000000000000000000000021512614153434010610 0ustar [DEFAULT] debian-branch=master/ubuntu/vivid debian-tag=master/ubuntu/vivid/%(version)s upstream-branch=upstream upstream-tag=spl-%(version)s debian/source/0000775000000000000000000000000012614153434010473 5ustar debian/source/format0000664000000000000000000000001412614153434011701 0ustar 3.0 (quilt) debian/spl.postinst0000664000000000000000000000453712614153434011607 0ustar #!/bin/sh -e # The hostname and hostid of the last system to access a ZFS pool are stored in # the ZFS pool itself. A pool is foreign if, during `zpool import`, the # current hostname and hostid are different than the stored values thereof. # # The hostname and hostid on Solaris are intrinsic, but they are not on Linux, # so the spl kernel module invokes /bin/hostname and /usr/bin/hostid from the # userland in its initialization routine. # # However, these two indentifiers are usually undefined in the Linux initramfs # environment, so the /etc/hostname and /etc/hostid files must be added to the # initrd. Things like a DHCP lease change can affect the hostid too. # # ZFS requires stable values for hostname and hostid, but basic Linux systems # do not. The hostid is therefore stabilized by creating the /etc/hostid file # in the regular environment if it does not already exist. An undefined # hostname is usuallly stable. # # Neither /etc/hostname nor /etc/hostid are controlled configuration files in # Debian distributions, but the spl package nevertheless installs a dummy # /etc/hostid file that contains the HW_INVALID_HOSTID sentinal value so that # the package manager will track it. # This result is always an eight-character hexadecimal number sans the 0x # prefix. Remember that /usr/bin/hostid generates a value if the /etc/hostid # file doesn't exist or is malformed. HOSTID=$(hostid) if [ -f /etc/hostid -a "0x$HOSTID" != "0xffffffff" ] then # This system already has a stable hostid. exit 0 fi # Truncate the dummy file and generate the actual system hostid. : >/etc/hostid HOSTID=$(hostid) # @TODO: Check whether this method is appropriate for gethostid(2) on big # endian systems. (Update: It isn't.) # # The /etc/hostname file on i386 and amd64 systems must be a little endian # integer of exacly four bytes. Regardless, a consistent hostid is more # important than a correct byte order here. # Conveniences like a ${HOSTID:$ii:2} substring range or a `sed` one-liner # are prohibited here because this file must be dash-compatible by policy. AA=$(echo $HOSTID | cut -b 1,2) BB=$(echo $HOSTID | cut -b 3,4) CC=$(echo $HOSTID | cut -b 5,6) DD=$(echo $HOSTID | cut -b 7,8) # Invoke the external printf because the dash builtin lacks the byte format. "$(which printf)" "\x$DD\x$CC\x$BB\x$AA" >"/etc/hostid" # @ASSERT: [ "$HOSTID" = "$(hostid)" ] #DEBHELPER# debian/rules0000775000000000000000000000367312654665432010276 0ustar #!/usr/bin/make -f NAME := $(shell awk '$$1 == "Name:" { print $$2; }' META) VERSION := $(shell dpkg-parsechangelog \ | awk '$$1 == "Version:" { print $$2; }' | cut -d- -f1) REVISION := $(shell dpkg-parsechangelog \ | awk '$$1 == "Version:" { print $$2; }' | cut -d- -f2-) %: dh $@ --with autoreconf override_dh_auto_configure: @# Embed the downstream version in the module. @sed \ -e 's/^Version:.*/Version: $(VERSION)/' \ -e 's/^Release:.*/Release: $(REVISION)/' \ -i.orig META @# Build the userland, but don't build the kernel modules. dh_auto_configure -- --with-config=user override_dh_auto_test: # scripts/check.sh tries insmod and rmmod, so it cannot # run in an unprivileged build environment. override_dh_auto_install: @# Install the utilities. make install DESTDIR='$(CURDIR)/debian/tmp' @# Create a dummy hostid file for the zfs-initramfs package. @# NB: Commentary in the spl.postinst script. mkdir -p '$(CURDIR)/debian/tmp/etc/' /usr/bin/printf '\xFF\xFF\xFF\xFF' >'$(CURDIR)/debian/tmp/etc/hostid' @# Get a bare copy of the source code. @# This creates the $(CURDIR)/$(NAME)-$(VERSION)/ tree. make distdir # Old: Delete boilerplate to satisfy the lintian extra-license-file check. # Now: Don't remove this as we want this to end up in the Ubuntu kernel # source on a copy (Feb 4, 2016) #rm '$(CURDIR)/$(NAME)-$(VERSION)/COPYING' @# This shunt allows DKMS to install the Module.symvers and spl_config.h @# files to the ${dkms_tree} area through the POST_INSTALL directive. echo '#!/bin/sh' >'$(CURDIR)/$(NAME)-$(VERSION)/cp' echo 'cp "$$@"' >>'$(CURDIR)/$(NAME)-$(VERSION)/cp' chmod 755 '$(CURDIR)/$(NAME)-$(VERSION)/cp' # Install the DKMS source. mkdir -p '$(CURDIR)/debian/tmp/usr/src/' mv '$(CURDIR)/$(NAME)-$(VERSION)' '$(CURDIR)/debian/tmp/usr/src/' # Install the dkms.conf file. dh_dkms -V $(VERSION) override_dh_auto_clean: dh_auto_clean @if test -e META.orig; then mv META.orig META; fi debian/compat0000664000000000000000000000000212614153434010371 0ustar 7 debian/copyright0000664000000000000000000001652312614153434011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Solaris Porting Layer for Linux Upstream-Contact: Brian Behlendorf Source: https://github.com/zfsonlinux/spl/ Disclaimer: This work was produced at the Lawrence Livermore National Laboratory (LLNL) under Contract No. DE-AC52-07NA27344 (Contract 44) between the U.S. Department of Energy (DOE) and Lawrence Livermore National Security, LLC (LLNS) for the operation of LLNL. . This work was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor Lawrence Livermore National Security, LLC nor any of their employees, makes any warranty, express or implied, or assumes any liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately-owned rights. . Reference herein to any specific commercial products, process, or services by trade name, trademark, manufacturer or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or Lawrence Livermore National Security, LLC. The views and opinions of authors expressed herein do not necessarily state or reflect those of the Untied States Government or Lawrence Livermore National Security, LLC, and shall not be used for advertising or product endorsement purposes. Files: * Copyright: Lawrence Livermore National Security, LLC. The Regents of the University of California License: GPL-2+ Files: config/config.guess Copyright: Free Software Foundation, Inc. License: GPL-2+ Files: config/config.sub Copyright: Free Software Foundation, Inc. License: GPL-2+ Files: config/deb.am Copyright: Lawrence Livermore National Security, LLC. License: GPL-2+ Files: config/depcomp Copyright: Free Software Foundation, Inc. License: GPL-2+ Files: config/install-sh Copyright: 1994 X Consortium License: X11-install-sh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other deal- ings in this Software without prior written authorization from the X Consor- tium. Files: config/ltmain.sh Copyright: Free Software Foundation, Inc. License: GPL-2+ Files: config/missing Copyright: Free Software Foundation, Inc. License: GPL-2+ Files: config/tgz.am Copyright: Lawrence Livermore National Security, LLC. License: GPL-2+ Files: debian/* Copyright: Darik Horn License: GPL-2+ Files: include/linux/zlib_compat.h Copyright: Lawrence Livermore National Security, LLC. License: GPL-2+ Files: include/rpc/xdr.h Copyright: Sun Microsystems, Inc. License: GPL-2+ Files: include/sys/extdirent.h Copyright: Lawrence Livermore National Security, LLC. License: GPL-2+ Files: include/sys/fcntl.h Copyright: Lawrence Livermore National Security, LLC. License: GPL-2+ Files: include/sys/idmap.h Copyright: Lawrence Livermore National Security, LLC. License: GPL-2+ Files: include/sys/tsd.h Copyright: Lawrence Livermore National Security, LLC. License: GPL-2+ Files: include/sys/zmod.h Copyright: Jean-loup Gailly Mark Adler License: zmod This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. . 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. . 3. This notice may not be removed or altered from any source distribution. Files: module/spl/spl-tsd.c Copyright: Lawrence Livermore National Security, LLC. License: GPL-2+ Files: module/spl/spl-xdr.c Copyright: Sun Microsystems, Inc. License: GPL-2+ Files: module/splat/splat-linux.c Copyright: Lawrence Livermore National Security, LLC. License: GPL-2+ Files: scripts/kmodtool Copyright: 2003-2012 Ville Skyttä Thorsten Leemhuis Nicolas Chauvet License: BSD-like Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file /usr/share/common-licenses/GPL-2. debian/dkms0000664000000000000000000000224212614153434010054 0ustar AUTOINSTALL="yes" PACKAGE_NAME="spl" PACKAGE_VERSION="#MODULE_VERSION#" PRE_BUILD="configure --prefix=/usr --with-config=kernel --with-linux=$(case `lsb_release -is` in (Debian) if [ -e ${kernel_source_dir/%build/source} ] then echo ${kernel_source_dir/%build/source} else # This is a kpkg exception for Proxmox 2.0 echo ${kernel_source_dir} fi ;; (*) echo ${kernel_source_dir} ;; esac) --with-linux-obj=${kernel_source_dir} " POST_INSTALL="cp ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/spl_config.h ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/module/Module.symvers ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/${kernelver}/${arch}/ " REMAKE_INITRD="no" MAKE[0]="make" BUILT_MODULE_NAME[0]="spl" BUILT_MODULE_LOCATION[0]="module/spl/" DEST_MODULE_LOCATION[0]="/extra/spl/spl" BUILT_MODULE_NAME[1]="splat" BUILT_MODULE_LOCATION[1]="module/splat/" DEST_MODULE_LOCATION[1]="/extra/splat/splat"