]> git.proxmox.com Git - mirror_zfs-debian.git/commitdiff
Merge tag 'upstream/0.6.5.3'
authorAron Xu <aron@debian.org>
Sun, 1 Nov 2015 04:45:43 +0000 (12:45 +0800)
committerAron Xu <aron@debian.org>
Sun, 1 Nov 2015 04:45:43 +0000 (12:45 +0800)
Upstream version 0.6.5.3

Conflicts:
META
Makefile.am
Makefile.in
aclocal.m4
cmd/Makefile.in
cmd/arc_summary/Makefile.am
cmd/arc_summary/Makefile.in
cmd/arc_summary/arc_summary.py
cmd/arcstat/Makefile.in
cmd/arcstat/arcstat.py
cmd/dbufstat/Makefile.am
cmd/dbufstat/Makefile.in
cmd/fsck_zfs/Makefile.in
cmd/mount_zfs/Makefile.in
cmd/mount_zfs/mount_zfs.c
cmd/vdev_id/Makefile.in
cmd/zdb/Makefile.in
cmd/zdb/zdb.c
cmd/zdb/zdb_il.c
cmd/zed/Makefile.am
cmd/zed/Makefile.in
cmd/zed/zed.c
cmd/zed/zed.d/all-debug.sh
cmd/zed/zed.d/all-syslog.sh
cmd/zed/zed.d/checksum-spare.sh
cmd/zed/zed.d/io-spare.sh
cmd/zed/zed.d/zed.rc
cmd/zed/zed.h
cmd/zed/zed_conf.c
cmd/zed/zed_conf.h
cmd/zed/zed_event.c
cmd/zed/zed_event.h
cmd/zed/zed_exec.c
cmd/zed/zed_exec.h
cmd/zed/zed_file.c
cmd/zed/zed_file.h
cmd/zed/zed_log.c
cmd/zed/zed_log.h
cmd/zed/zed_strings.c
cmd/zed/zed_strings.h
cmd/zfs/Makefile.in
cmd/zfs/zfs_main.c
cmd/zhack/Makefile.in
cmd/zhack/zhack.c
cmd/zinject/Makefile.in
cmd/zpios/Makefile.in
cmd/zpool/Makefile.in
cmd/zpool/zpool_main.c
cmd/zstreamdump/Makefile.in
cmd/zstreamdump/zstreamdump.c
cmd/ztest/Makefile.in
cmd/ztest/ztest.c
cmd/zvol_id/Makefile.in
config/Rules.am
config/deb.am
config/kernel-bdi-setup-and-register.m4
config/kernel-blk-end-request.m4
config/kernel-blk-rq-bytes.m4
config/kernel-rq-for-each_segment.m4
config/kernel.m4
config/mount-helper.m4
config/zfs-build.m4
configure
configure.ac
contrib/Makefile.am
contrib/Makefile.in
contrib/bash_completion.d/Makefile.in
contrib/dracut/90zfs/Makefile.in
contrib/dracut/90zfs/module-setup.sh.in
contrib/dracut/90zfs/parse-zfs.sh.in
contrib/dracut/Makefile.in
contrib/dracut/README.dracut.markdown
dracut/90zfs/Makefile.am
dracut/90zfs/mount-zfs.sh.in
etc/Makefile.in
etc/init.d/Makefile.am
etc/init.d/Makefile.in
etc/init.d/zfs.fedora.in
etc/init.d/zfs.gentoo.in
etc/init.d/zfs.lsb.in
etc/init.d/zfs.lunar.in
etc/init.d/zfs.redhat.in
etc/modules-load.d/Makefile.am
etc/modules-load.d/Makefile.in
etc/systemd/Makefile.in
etc/systemd/system/Makefile.am
etc/systemd/system/Makefile.in
etc/zfs/Makefile.in
include/Makefile.in
include/libzfs.h
include/libzfs_core.h
include/linux/Makefile.am
include/linux/Makefile.in
include/linux/blkdev_compat.h
include/linux/vfs_compat.h
include/sys/Makefile.am
include/sys/Makefile.in
include/sys/arc.h
include/sys/arc_impl.h
include/sys/dbuf.h
include/sys/dmu.h
include/sys/dmu_objset.h
include/sys/dmu_send.h
include/sys/dnode.h
include/sys/dsl_dataset.h
include/sys/dsl_dir.h
include/sys/dsl_pool.h
include/sys/dsl_synctask.h
include/sys/fm/Makefile.in
include/sys/fm/fs/Makefile.in
include/sys/fs/Makefile.in
include/sys/fs/zfs.h
include/sys/mntent.h
include/sys/rrwlock.h
include/sys/sa_impl.h
include/sys/spa.h
include/sys/spa_impl.h
include/sys/trace_acl.h
include/sys/trace_arc.h
include/sys/trace_dbgmsg.h
include/sys/trace_dbuf.h
include/sys/trace_dmu.h
include/sys/trace_dnode.h
include/sys/trace_txg.h
include/sys/trace_zil.h
include/sys/trace_zrlock.h
include/sys/vdev_impl.h
include/sys/zfs_context.h
include/sys/zfs_debug.h
include/sys/zfs_ioctl.h
include/sys/zfs_sa.h
include/sys/zfs_vfsops.h
include/sys/zfs_znode.h
include/sys/zio.h
include/sys/zpl.h
include/zfeature_common.h
lib/Makefile.in
lib/libavl/Makefile.in
lib/libefi/Makefile.am
lib/libefi/Makefile.in
lib/libefi/rdwr_efi.c
lib/libnvpair/Makefile.in
lib/libshare/Makefile.in
lib/libspl/Makefile.am
lib/libspl/Makefile.in
lib/libspl/asm-generic/Makefile.in
lib/libspl/asm-i386/Makefile.in
lib/libspl/asm-x86_64/Makefile.in
lib/libspl/include/Makefile.in
lib/libspl/include/ia32/Makefile.in
lib/libspl/include/ia32/sys/Makefile.in
lib/libspl/include/rpc/Makefile.in
lib/libspl/include/sys/Makefile.in
lib/libspl/include/sys/dktp/Makefile.in
lib/libspl/include/sys/sysevent/Makefile.in
lib/libspl/include/umem.h
lib/libspl/include/util/Makefile.in
lib/libunicode/Makefile.in
lib/libuutil/Makefile.in
lib/libzfs/Makefile.am
lib/libzfs/Makefile.in
lib/libzfs/libzfs.pc
lib/libzfs/libzfs_core.pc
lib/libzfs/libzfs_dataset.c
lib/libzfs/libzfs_iter.c
lib/libzfs/libzfs_sendrecv.c
lib/libzfs/libzfs_util.c
lib/libzfs_core/Makefile.am
lib/libzfs_core/Makefile.in
lib/libzfs_core/libzfs_core.c
lib/libzpool/Makefile.am
lib/libzpool/Makefile.in
lib/libzpool/kernel.c
man/Makefile.in
man/man1/Makefile.in
man/man5/Makefile.in
man/man5/vdev_id.conf.5
man/man5/zfs-events.5
man/man5/zfs-module-parameters.5
man/man5/zpool-features.5
man/man8/Makefile.in
man/man8/mount.zfs.8
man/man8/zed.8.in
man/man8/zfs.8
man/man8/zpool.8
module/zcommon/zfs_uio.c
module/zcommon/zpool_prop.c
module/zfs/Makefile.in
module/zfs/arc.c
module/zfs/bpobj.c
module/zfs/dbuf.c
module/zfs/dbuf_stats.c
module/zfs/ddt.c
module/zfs/dmu.c
module/zfs/dmu_diff.c
module/zfs/dmu_objset.c
module/zfs/dmu_send.c
module/zfs/dmu_traverse.c
module/zfs/dmu_tx.c
module/zfs/dnode.c
module/zfs/dnode_sync.c
module/zfs/dsl_bookmark.c
module/zfs/dsl_dataset.c
module/zfs/dsl_deleg.c
module/zfs/dsl_destroy.c
module/zfs/dsl_dir.c
module/zfs/dsl_pool.c
module/zfs/dsl_prop.c
module/zfs/dsl_scan.c
module/zfs/dsl_synctask.c
module/zfs/dsl_userhold.c
module/zfs/fm.c
module/zfs/metaslab.c
module/zfs/range_tree.c
module/zfs/rrwlock.c
module/zfs/sa.c
module/zfs/spa.c
module/zfs/spa_config.c
module/zfs/spa_history.c
module/zfs/spa_misc.c
module/zfs/spa_stats.c
module/zfs/trace.c
module/zfs/uberblock.c
module/zfs/vdev.c
module/zfs/vdev_disk.c
module/zfs/vdev_file.c
module/zfs/vdev_mirror.c
module/zfs/vdev_missing.c
module/zfs/vdev_queue.c
module/zfs/vdev_raidz.c
module/zfs/zap.c
module/zfs/zap_leaf.c
module/zfs/zap_micro.c
module/zfs/zfeature_common.c
module/zfs/zfs_ctldir.c
module/zfs/zfs_debug.c
module/zfs/zfs_ioctl.c
module/zfs/zfs_onexit.c
module/zfs/zfs_vfsops.c
module/zfs/zfs_vnops.c
module/zfs/zfs_znode.c
module/zfs/zil.c
module/zfs/zio.c
module/zfs/zpl_ctldir.c
module/zfs/zpl_export.c
module/zfs/zpl_file.c
module/zfs/zpl_inode.c
module/zfs/zpl_super.c
module/zfs/zvol.c
module/zpios/pios.c
rpm/Makefile.in
rpm/generic/Makefile.in
rpm/generic/zfs-dkms.spec.in
rpm/generic/zfs-kmod.spec.in
rpm/generic/zfs.spec.in
rpm/redhat/Makefile.in
rpm/redhat/zfs-dkms.spec.in
rpm/redhat/zfs.spec.in
scripts/Makefile.am
scripts/Makefile.in
scripts/zpios-profile/Makefile.in
scripts/zpios-test/Makefile.in
scripts/zpool-config/Makefile.in
udev/Makefile.in
udev/rules.d/Makefile.in
zfs_config.h.in

70 files changed:
debian/README.Debian [new file with mode: 0644]
debian/README.Source [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/control.in [new file with mode: 0644]
debian/control.modules.in [new file with mode: 0644]
debian/control.udeb.in [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/examples/zfsutils/etc/sudoers.d/zfs [new file with mode: 0644]
debian/libnvpair1linux-udeb.install [new file with mode: 0644]
debian/libnvpair1linux.docs [new file with mode: 0644]
debian/libnvpair1linux.install [new file with mode: 0644]
debian/libuutil1linux-udeb.install [new file with mode: 0644]
debian/libuutil1linux.docs [new file with mode: 0644]
debian/libuutil1linux.install [new file with mode: 0644]
debian/libzfs2linux-udeb.install [new file with mode: 0644]
debian/libzfs2linux.docs [new file with mode: 0644]
debian/libzfs2linux.install [new file with mode: 0644]
debian/libzfslinux-dev.docs [new file with mode: 0644]
debian/libzfslinux-dev.install [new file with mode: 0644]
debian/libzpool1linux-udeb.install [new file with mode: 0644]
debian/libzpool1linux.docs [new file with mode: 0644]
debian/libzpool1linux.install [new file with mode: 0644]
debian/po/POTFILES.in [new file with mode: 0644]
debian/po/cs.po [new file with mode: 0644]
debian/po/da.po [new file with mode: 0644]
debian/po/de.po [new file with mode: 0644]
debian/po/fr.po [new file with mode: 0644]
debian/po/ja.po [new file with mode: 0644]
debian/po/pl.po [new file with mode: 0644]
debian/po/pt.po [new file with mode: 0644]
debian/po/ru.po [new file with mode: 0644]
debian/po/sv.po [new file with mode: 0644]
debian/po/templates.pot [new file with mode: 0644]
debian/po/zh_CN.po [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
debian/tree/zfs-initramfs/usr/share/initramfs-tools/conf-hooks.d/zfs [new file with mode: 0644]
debian/tree/zfs-initramfs/usr/share/initramfs-tools/hooks/zfs [new file with mode: 0755]
debian/tree/zfs-initramfs/usr/share/initramfs-tools/scripts/zfs [new file with mode: 0644]
debian/tree/zfsutils/etc/bash_completion.d/zfs [new file with mode: 0644]
debian/tree/zfsutils/usr/lib/os-probes/10zvol-test [new file with mode: 0755]
debian/tree/zfsutils/usr/share/initramfs-tools/hooks/zdev [new file with mode: 0755]
debian/watch [new file with mode: 0644]
debian/zfs-dkms.config [new file with mode: 0644]
debian/zfs-dkms.dkms [new file with mode: 0644]
debian/zfs-dkms.docs [new file with mode: 0644]
debian/zfs-dkms.install [new file with mode: 0644]
debian/zfs-dkms.postinst [new file with mode: 0644]
debian/zfs-dkms.prerm [new file with mode: 0644]
debian/zfs-dkms.templates [new file with mode: 0644]
debian/zfs-dracut.install [new file with mode: 0644]
debian/zfs-initramfs.install [new file with mode: 0644]
debian/zfs-initramfs.triggers [new file with mode: 0644]
debian/zfs-modules-_KVERS_-di.install.in [new file with mode: 0644]
debian/zfs-modules-_KVERS_.install.in [new file with mode: 0644]
debian/zfs-modules-_KVERS_.postinst.in [new file with mode: 0644]
debian/zfs-modules-_KVERS_.postrm.in [new file with mode: 0644]
debian/zfsutils-linux-udeb.install [new file with mode: 0644]
debian/zfsutils-linux-udeb.isinstallable [new file with mode: 0644]
debian/zfsutils-linux.docs [new file with mode: 0644]
debian/zfsutils-linux.examples [new file with mode: 0644]
debian/zfsutils-linux.install [new file with mode: 0644]
debian/zfsutils-linux.postinst [new file with mode: 0644]
debian/zfsutils-linux.postrm [new file with mode: 0644]
debian/zfsutils-linux.preinst [new file with mode: 0644]
debian/zfsutils-linux.zfs-mount.init [new file with mode: 0644]
debian/zfsutils-linux.zfs-share.init [new file with mode: 0644]
debian/zfsutils-linux.zfs.default [new file with mode: 0644]

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644 (file)
index 0000000..9163f78
--- /dev/null
@@ -0,0 +1,21 @@
+zfs-linux for Debian
+
+1. Feature flags are enabled by default.
+
+This means that ZoL will now create pools in a way that is
+incompatible with Solaris. If you need Solaris compatibility,
+then create pools like this:
+
+  # zpool create -o version=28 tank ...
+
+ZoL remains compatible with all other ZFS implementations derived
+from Illumos.
+
+2. Use zfs-initramfs with caution.
+
+Debian Installer's root installation support is being worked on,
+and zfs-initramfs is included here but still needs to be tested
+in detail. Since faulty operation on filesystem can lead to major
+loss of data, please use zfs-initramfs with caution.
+
+ -- Aron Xu <aron@debian.org>  Sat, 3 Aug 2013 03:23:11 +0800
diff --git a/debian/README.Source b/debian/README.Source
new file mode 100644 (file)
index 0000000..fa9e3c2
--- /dev/null
@@ -0,0 +1,35 @@
+zfs-linux for Debian
+
+Using DKMS is the recommended way of installing this kernel
+module, however if you do have the need of building deb/udeb
+packages containing the binary kernel module, here is the way.
+Be careful when proceed with this way, as your attention is 
+required when kernel ABI get changed on target system that this
+module needs to be rebuilt and it needs to replace the originally
+installed package with this newly built one on target system.
+
+You may first install all required build dependency on a machine
+that runs the very same kernel as on your target system, then
+execute following command at the top level directory of the
+decompressed debian source package. Do not install the generated 
+package with kernels that have different configuration, which is
+not supported and likely to break things.
+
+  * deb packages:
+    fakeroot debian/rules override_dh_binary-modules
+  * udeb packages:
+    fakeroot debian/rules override_dh_binary-modules-udeb
+
+Please be aware that building zfs kernel modules require a
+successful build of spl kernel modules, so you must install
+spl-dkms and configure it correctly on the builder machine before
+building this package.
+
+udeb packages for libraries and utilities are not generated by
+default, if you need them then rebuild this package passing the
+variable BUILD_UDEB=true.
+
+zfs-initramfs is built on linux-any to avoid un-wanted installation
+on non-linux architectures that do not need it.
+
+ -- Aron Xu <aron@debian.org>  Sun, 14 July 2013 04:00:12 +0800
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..cae395e
--- /dev/null
@@ -0,0 +1,5 @@
+zfs-linux (0.6.4.2-1) experimental; urgency=medium
+
+  * Initial Release (Closes: #686447)
+
+ -- Aron Xu <aron@debian.org>  Thu, 13 Aug 2015 21:08:38 +0800
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..2a5bd21
--- /dev/null
@@ -0,0 +1,143 @@
+Source: zfs-linux
+Section: contrib/kernel
+Priority: optional
+Maintainer: Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>
+Uploaders: Aron Xu <aron@debian.org>,
+           Carlos Alberto Lopez Perez <clopez@igalia.com>
+Build-Depends: autoconf,
+               autogen,
+               automake,
+               autotools-dev,
+               debhelper (>= 9),
+               dkms (>> 2.1.1.2-5),
+               libselinux1-dev,
+               libtool,
+               lsb-release,
+               po-debconf,
+               uuid-dev,
+               zlib1g-dev
+Standards-Version: 3.9.6
+Homepage: http://www.zfsonlinux.org/
+Vcs-Git: git://anonscm.debian.org/pkg-zfsonlinux/zfs.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-zfsonlinux/spl.git
+
+Package: libnvpair1linux
+Section: contrib/libs
+Architecture: linux-any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Solaris name-value library for Linux
+ This library provides routines for packing and unpacking nv pairs for
+ transporting data across process boundaries, transporting between
+ kernel and userland, and possibly saving onto disk files.
+
+Package: libuutil1linux
+Section: contrib/libs
+Architecture: linux-any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Solaris userland utility library for Linux
+ This library provides a variety of glue functions for ZFS on Linux:
+  * libspl: The Solaris Porting Layer userland library, which provides APIs
+    that make it possible to run Solaris user code in a Linux environment
+    with relatively minimal modification.
+  * libavl: The Adelson-Velskii Landis balanced binary tree manipulation
+    library.
+  * libefi: The Extensible Firmware Interface library for GUID disk
+    partitioning.
+  * libshare: NFS, SMB, and iSCSI service integration for ZFS.
+
+Package: libzfslinux-dev
+Section: contrib/libdevel
+Architecture: linux-any
+Depends: libzfs2linux (= ${binary:Version}), libzpool2linux (= ${binary:Version}),
+ libnvpair1linux (= ${binary:Version}), libuutil1linux (= ${binary:Version}),
+ ${misc:Depends}
+Provides: libnvpair-dev, libuutil-dev
+Description: Native ZFS filesystem development files for Linux
+ Header files and static libraries for compiling software  against
+ libraries of native ZFS filesystem.
+ .
+ This package includes the development files of libnvpair1, libuutil1,
+ and libzfs2.
+
+Package: libzfs2linux
+Section: contrib/libs
+Architecture: linux-any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Native ZFS filesystem library for Linux
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ The ZFS library provides support for managing ZFS filesystems.
+
+Package: libzpool2linux
+Section: contrib/libs
+Architecture: linux-any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Native ZFS pool library for Linux
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ This zpool library provides support for managing zpools.
+
+Package: zfs-dkms
+Architecture: all
+Pre-Depends: spl-dkms (>= ${source:Upstream-Version})
+Depends: dkms (>> 2.1.1.2-5), lsb-release, ${misc:Depends}
+Recommends: zfsutils-linux
+Replaces: lzfs, lzfs-dkms
+Provides: lustre-backend-fs, lzfs, lzfs-dkms, zfs-modules
+Conflicts: lzfs, lzfs-dkms
+Description: Native ZFS filesystem kernel modules for Linux
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ This DKMS package includes the SPA, DMU, ZVOL, and ZPL components of ZFS.
+
+Package: zfs-initramfs
+Architecture: linux-any
+Depends: initramfs-tools, zfs-modules | zfs-dkms, zfsutils-linux, ${misc:Depends}
+Description: Native ZFS root filesystem capabilities for Linux
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ This package adds ZFS to the system initramfs with a hook
+ for the initramfs-tools infrastructure.
+
+Package: zfsutils-linux
+Section: contrib/admin
+Architecture: linux-any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Recommends: lsb-base, zfs-modules | zfs-dkms
+Suggests: nfs-kernel-server, samba-common-bin (>= 3.0.23), zfs-initramfs
+Conflicts: zfs, zfs-fuse
+Replaces: zfs
+Provides: zfsutils
+Description: command-line tools to manage ZFS filesystems
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ This package provides the zfs and zpool commands to create and administer
+ ZFS filesystems.
+
+Package: zfs-dbg
+Section: contrib/debug
+Priority: extra
+Architecture: linux-any
+Depends: libnvpair1linux (= ${binary:Version}),
+         libuutil1linux (= ${binary:Version}),
+         libzfs2linux (= ${binary:Version}),
+         libzpool2linux (= ${binary:Version}),
+         ${misc:Depends}
+Recommends: zfsutils-linux (= ${binary:Version})
+Description: Debugging symbols for ZFS userland libraries and tools
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ This package contains the debugging symbols for libzpoo1linux, libzfs2linux,
+ libnvpair1linux, libuutil1linux, and zfsutils-linux.
diff --git a/debian/control.in b/debian/control.in
new file mode 100644 (file)
index 0000000..2a5bd21
--- /dev/null
@@ -0,0 +1,143 @@
+Source: zfs-linux
+Section: contrib/kernel
+Priority: optional
+Maintainer: Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>
+Uploaders: Aron Xu <aron@debian.org>,
+           Carlos Alberto Lopez Perez <clopez@igalia.com>
+Build-Depends: autoconf,
+               autogen,
+               automake,
+               autotools-dev,
+               debhelper (>= 9),
+               dkms (>> 2.1.1.2-5),
+               libselinux1-dev,
+               libtool,
+               lsb-release,
+               po-debconf,
+               uuid-dev,
+               zlib1g-dev
+Standards-Version: 3.9.6
+Homepage: http://www.zfsonlinux.org/
+Vcs-Git: git://anonscm.debian.org/pkg-zfsonlinux/zfs.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-zfsonlinux/spl.git
+
+Package: libnvpair1linux
+Section: contrib/libs
+Architecture: linux-any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Solaris name-value library for Linux
+ This library provides routines for packing and unpacking nv pairs for
+ transporting data across process boundaries, transporting between
+ kernel and userland, and possibly saving onto disk files.
+
+Package: libuutil1linux
+Section: contrib/libs
+Architecture: linux-any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Solaris userland utility library for Linux
+ This library provides a variety of glue functions for ZFS on Linux:
+  * libspl: The Solaris Porting Layer userland library, which provides APIs
+    that make it possible to run Solaris user code in a Linux environment
+    with relatively minimal modification.
+  * libavl: The Adelson-Velskii Landis balanced binary tree manipulation
+    library.
+  * libefi: The Extensible Firmware Interface library for GUID disk
+    partitioning.
+  * libshare: NFS, SMB, and iSCSI service integration for ZFS.
+
+Package: libzfslinux-dev
+Section: contrib/libdevel
+Architecture: linux-any
+Depends: libzfs2linux (= ${binary:Version}), libzpool2linux (= ${binary:Version}),
+ libnvpair1linux (= ${binary:Version}), libuutil1linux (= ${binary:Version}),
+ ${misc:Depends}
+Provides: libnvpair-dev, libuutil-dev
+Description: Native ZFS filesystem development files for Linux
+ Header files and static libraries for compiling software  against
+ libraries of native ZFS filesystem.
+ .
+ This package includes the development files of libnvpair1, libuutil1,
+ and libzfs2.
+
+Package: libzfs2linux
+Section: contrib/libs
+Architecture: linux-any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Native ZFS filesystem library for Linux
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ The ZFS library provides support for managing ZFS filesystems.
+
+Package: libzpool2linux
+Section: contrib/libs
+Architecture: linux-any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Native ZFS pool library for Linux
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ This zpool library provides support for managing zpools.
+
+Package: zfs-dkms
+Architecture: all
+Pre-Depends: spl-dkms (>= ${source:Upstream-Version})
+Depends: dkms (>> 2.1.1.2-5), lsb-release, ${misc:Depends}
+Recommends: zfsutils-linux
+Replaces: lzfs, lzfs-dkms
+Provides: lustre-backend-fs, lzfs, lzfs-dkms, zfs-modules
+Conflicts: lzfs, lzfs-dkms
+Description: Native ZFS filesystem kernel modules for Linux
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ This DKMS package includes the SPA, DMU, ZVOL, and ZPL components of ZFS.
+
+Package: zfs-initramfs
+Architecture: linux-any
+Depends: initramfs-tools, zfs-modules | zfs-dkms, zfsutils-linux, ${misc:Depends}
+Description: Native ZFS root filesystem capabilities for Linux
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ This package adds ZFS to the system initramfs with a hook
+ for the initramfs-tools infrastructure.
+
+Package: zfsutils-linux
+Section: contrib/admin
+Architecture: linux-any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Recommends: lsb-base, zfs-modules | zfs-dkms
+Suggests: nfs-kernel-server, samba-common-bin (>= 3.0.23), zfs-initramfs
+Conflicts: zfs, zfs-fuse
+Replaces: zfs
+Provides: zfsutils
+Description: command-line tools to manage ZFS filesystems
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ This package provides the zfs and zpool commands to create and administer
+ ZFS filesystems.
+
+Package: zfs-dbg
+Section: contrib/debug
+Priority: extra
+Architecture: linux-any
+Depends: libnvpair1linux (= ${binary:Version}),
+         libuutil1linux (= ${binary:Version}),
+         libzfs2linux (= ${binary:Version}),
+         libzpool2linux (= ${binary:Version}),
+         ${misc:Depends}
+Recommends: zfsutils-linux (= ${binary:Version})
+Description: Debugging symbols for ZFS userland libraries and tools
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ This package contains the debugging symbols for libzpoo1linux, libzfs2linux,
+ libnvpair1linux, libuutil1linux, and zfsutils-linux.
diff --git a/debian/control.modules.in b/debian/control.modules.in
new file mode 100644 (file)
index 0000000..92de81f
--- /dev/null
@@ -0,0 +1,51 @@
+Source: zfs-linux
+Section: contrib/kernel
+Priority: extra
+Maintainer: Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>
+Build-Depends: autotools-dev,
+ autoconf,
+ autogen,
+ automake,
+ debhelper (>= 9),
+ dkms (>> 2.1.1.2-5),
+ libtool,
+ linux-headers-_KVERS_,
+ spl-dkms
+Standards-Version: 3.9.4
+Homepage: http://www.zfsonlinux.org/
+Vcs-Git: git://anonscm.debian.org/pkg-zfsonlinux/zfs.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-zfsonlinux/spl.git
+
+Package: zfs-modules-_KVERS_
+Architecture: _ARCH_
+Provides: zfs-modules
+Depends: linux-image-_KVERS_, spl-modules | spl-dkms
+Recommends: zfsutils
+Description: Native ZFS filesystem kernel modules for Linux (kernel _KVERS_)
+ An advanced integrated volume manager and filesystem that is designed for
+ performance and data integrity. Snapshots, clones, checksums, deduplication,
+ compression, and RAID redundancy are built-in features.
+ .
+ This package contains the compiled kernel module for _KVERS_
+ .
+ Includes the SPA, DMU, ZVOL, and ZPL components of ZFS.
+ .
+ If you have compiled your own kernel, you will most likely need to build
+ your own zfs-modules. The zfs-source package has been
+ provided for use with the Debian kernel-package utility to produce a 
+ version of zfs-module for your kernel.
+
+Package: zfs-modules-_KVERS_-di
+Package-Type: udeb
+Section: contrib/debian-installer
+Architecture: _ARCH_
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Provides: zfs-modules, zfs-modules-_KVERS_-udeb
+Description: Native ZFS filesystem kernel modules for Linux (debian-installar version for kernel _KVERS_)
+ An advanced integrated volume manager and filesystem that is designed for
+ performance and data integrity. Snapshots, clones, checksums, deduplication,
+ compression, and RAID redundancy are built-in features.
+ .
+ This package contains the compiled kernel module for _KVERS_
+ .
+ This is a minimal package for use in debian-installer.
diff --git a/debian/control.udeb.in b/debian/control.udeb.in
new file mode 100644 (file)
index 0000000..7c8ed68
--- /dev/null
@@ -0,0 +1,74 @@
+
+Package: libnvpair1-udeb
+Package-Type: udeb
+Section: contrib/debian-installer
+Architecture: linux-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Solaris name-value library for Linux (debian-installer)
+ This library provides routines for packing and unpacking nv pairs for
+ transporting data across process boundaries, transporting between
+ kernel and userland, and possibly saving onto disk files.
+ .
+ This is a minimal package for use in debian-installer.
+
+Package: libuutil1-udeb
+Package-Type: udeb
+Section: contrib/debian-installer
+Architecture: linux-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Solaris userland utility library for Linux (debian-installer)
+ This library provides a variety of glue functions for ZFS on Linux:
+  * libspl: The Solaris Porting Layer userland library, which provides APIs
+    that make it possible to run Solaris user code in a Linux environment
+    with relatively minimal modification.
+  * libavl: The Adelson-Velskii Landis balanced binary tree manipulation
+    library.
+  * libefi: The Extensible Firmware Interface library for GUID disk
+    partitioning.
+  * libshare: NFS, SMB, and iSCSI service integration for ZFS.
+ .
+ This is a minimal package for use in debian-installer.
+
+Package: libzfs1-udeb
+Package-Type: udeb
+Section: contrib/debian-installer
+Architecture: linux-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: OpenSolaris ZFS library (debian-installer)
+ The Z file system is a pooled filesystem designed for maximum data integrity,
+ supporting data snapshots, multiple copies, and data checksums.
+ .
+ The ZFS library provides support for managing ZFS filesystems.
+ .
+ This is a minimal package for use in debian-installer.
+
+Package: libzpool1-udeb
+Package-Type: udeb
+Section: contrib/debian-installer
+Architecture: linux-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Native ZFS pool library for Linux (debian-installer)
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data
+ checksums.
+ .
+ This zpool library provides support for managing zpools.
+ .
+ This is a minimal package for use in debian-installer.
+
+Package: zfsutils-udeb
+Package-Type: udeb
+Section: contrib/debian-installer
+Architecture: linux-any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ libuutil1-udeb (= ${binary:Version}), libnvpair1-udeb (= ${binary:Version}),
+ libzfs1-udeb (= ${binary:Version}), libzpool1-udeb (= ${binary:Version}),
+ zfs-modules,
+Description: command-line tools to manage ZFS filesystems (debian-installer)
+ The Z file system is a pooled filesystem designed for maximum data
+ integrity, supporting data snapshots, multiple copies, and data checksums.
+ .
+ This package provides the zfs and zpool commands to create and administer
+ ZFS filesystems.
+ .
+ This is a minimal package for use in debian-installer.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..964a0ce
--- /dev/null
@@ -0,0 +1,1596 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Native ZFS for Linux
+Upstream-Contact: Brian Behlendorf <behlendorf1@llnl.gov>
+Source: https://github.com/zfsonlinux/zfs/
+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.
+License: CDDL-1.0
+
+Files: *
+Copyright: Lawrence Livermore National Security, LLC.
+License: CDDL-1.0
+
+Files: cmd/mount_zfs/*
+Copyright: Oracle
+ Lawrence Livermore National Security, LLC.
+License: CDDL-1.0
+
+Files: cmd/zdb/*
+Copyright: Oracle
+ Sun Microssystems, Inc.
+License: CDDL-1.0
+
+Files: cmd/zdb/zdb_il.c
+Copyright: Sun Microsystems, Inc.
+ Cyril Plisko
+License: CDDL-1.0
+
+Files: cmd/zfs/zfs_iter.c
+Copyright: Oracle
+ Pawel Jakub Dawidek
+License: CDDL-1.0
+
+Files: cmd/zfs/zfs_iter.h
+Copyright: Sun Microssystems, Inc.
+License: CDDL-1.0
+
+Files: cmd/zfs/zfs_main.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: cmd/zfs/zfs_util.?
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: cmd/zinject/*
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: cmd/zpios/*
+Copyright: Cluster Filesystems, Inc.
+ Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: cmd/zpool/zpool_iter.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: cmd/zpool/zpool_main.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+ Frederik Wessels
+License: CDDL-1.0
+
+Files: cmd/zpool/zpool_util.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: cmd/zpool/zpool_util.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: cmd/zpool/zpool_vdev.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: cmd/zstreamdump/zstreamdump.c
+Copyright: Sun Microsystems, Inc.
+ Martin Matuska
+License: CDDL-1.0
+
+Files: cmd/ztest/ztest.c
+Copyright: Oracle
+ Delphix
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: cmd/zvol_id/*
+Copyright: Fajar A. Nugraha.
+License: CDDL-1.0
+
+Files: config/config.guess config/config.sub config/depcomp config/ltmain.sh config/missing
+Copyright: Free Software Foundation, Inc.
+License: GPL-2+
+
+Files: debian/*
+Copyright:
+ Darik Horn <dajhorn@vanadac.com>
+ Carlos Alberto Lopez Perez <clopez@igalia.com>
+ Aron Xu <aron@debian.org>
+License: GPL-2+
+
+Files: debian/tree/zfsutils/etc/bash_completion.d/zfs
+Copyright: 2013, Aneurin Price <aneurin.price@gmail.com>
+License: Expat
+
+Files: etc/init.d/zfs.gentoo.in
+Copyright: Gentoo Foundation
+License: BSD-2-clause
+ Copyright (c) 2011, Gentoo Foundation
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+ .
+ Redistributions in binary form must reproduce the above copyright notice, this
+ list of conditions and the following disclaimer in the documentation and/or
+ other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: include/libnvpair.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/libuutil_common.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/libuutil.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/libuutil_impl.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/libzfs.h
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: include/libzfs_impl.h
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: include/sys/arc.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/bplist.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/bpobj.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/dbuf.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/ddt.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/dmu.h
+Copyright: Oracle
+ Delphix
+ Robert Milkowski
+License: CDDL-1.0
+
+Files: include/sys/dmu_impl.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/dmu_objset.h
+Copyright: Oracle
+ Robert Milkowski
+License: CDDL-1.0
+
+Files: include/sys/dmu_traverse.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/dmu_tx.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/dmu_zfetch.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/dnode.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/dsl_*
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/dsl_dataset.h
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: include/sys/dsl_deleg.h
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: include/sys/efi_partition.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/fm/fs/zfs.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/fm/protocol.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/fm/util.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/fs/zfs.h
+Copyright: Oracle
+ Delphix
+ Nexenta Systems, Inc.
+ Robert Milkowski
+License: CDDL-1.0
+
+Files: include/sys/metaslab.h
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: include/sys/metaslab_impl.h
+Copyright: Sun Microsystems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: include/sys/nvpair.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/nvpair_impl.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/refcount.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/rrwlock.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/sa.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/sa_impl.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/spa_boot.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/space_map.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/spa.h
+Copyright: Oracle
+ Delphix
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/spa_impl.h
+Copyright: Oracle
+ Delphix
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/txg.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/txg_impl.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/u8_textprep_data.h
+Copyright: Unicode, Inc.
+ Sun Microsystems, Inc.
+License: Expat~Unicode
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of the Unicode data files and any associated documentation (the
+ "Data Files") or Unicode software and any associated documentation (the
+ "Software") to deal in the Data Files or Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, and/or sell copies of the Data Files or Software, and
+ to permit persons to whom the Data Files or Software are furnished to do so,
+ provided that (a) the above copyright notice(s) and this permission notice
+ appear with all copies of the Data Files or Software, (b) both the above
+ copyright notice(s) and this permission notice appear in associated
+ documentation, and (c) there is clear notice in each modified Data File or
+ in the Software as well as in the documentation associated with the Data
+ File(s) or Software that the data or software has been modified.
+ .
+ THE DATA FILES AND SOFTWARE ARE 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 OF
+ THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
+ INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR
+ CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ OF THE DATA FILES OR SOFTWARE.
+ .
+ Except as contained in this notice, the name of a copyright holder shall not
+ be used in advertising or otherwise to promote the sale, use or other
+ dealings in these Data Files or Software without prior written authorization
+ of the copyright holder.
+ .
+ Unicode and the Unicode logo are trademarks of Unicode, Inc., and may be
+ registered in some jurisdictions. All other trademarks and registered
+ trademarks mentioned herein are the property of their respective owners.
+
+Files: include/sys/u8_textprep.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/uberblock.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/uberblock_impl.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/uio_impl.h
+Copyright: Sun Microsystems, Inc.
+ AT&T
+ The Regents of the University of California
+License: CDDL-1.0
+
+Files: include/sys/unique.h
+Copyright: Sun Microsystems, Inc.
+ Hewlett-Packard Company
+ Open Software Foundation, Inc.
+ Digital Equipment Corporation.
+ Microsoft
+License: CDDL-1.0
+
+Files: include/sys/vdev_file.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/vdev.h
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: include/sys/vdev_impl.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/xvattr.h
+Copyright: AT&T
+ Oracle
+ The Regents of the University of California
+License: CDDL-1.0
+
+Files: include/sys/vdev_impl.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zap.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zap_impl.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zap_leaf.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zfs_acl.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zfs_context.h
+Copyright: Sun Microsystems, Inc.
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/zfs_ctldir.h
+Copyright: Oracle
+ Lawrence Livermore National Security, LLC.
+License: CDDL-1.0
+
+Files: include/sys/zfs_debug.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zfs_dir.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/zfs_fuid.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/zfs_ioctl.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zfs_onexit.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zfs_rlock.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/zfs_sa.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/zfs_stat.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zfs_vfsops.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zfs_vnops.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zfs_znode.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zil.h
+Copyright: Oracle
+ Robert Milkowski
+License: CDDL-1.0
+
+Files: include/sys/zil_impl.h
+Copyright: Oracle
+ Robert Milkowski
+License: CDDL-1.0
+
+Files: include/sys/zio_checksum.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zio_compress.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/zio.h
+Copyright: Oracle
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/zio_impl.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/sys/zrlock.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/sys/zvol.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/zfs_comutil.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: include/zfs_deleg.h
+Copyright: Oracle
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: include/zfs_fletcher.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/zfs_namecheck.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/zfs_prop.h
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: include/zpios-ctl.h
+Copyright: Cluster File Systems, Inc.
+ Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: include/zpios-internal.h
+Copyright: Cluster File Systems, Inc.
+ Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: lib/libefi/rdwr_efi.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: lib/libnvpair/libnvpair.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: lib/libnvpair/nvpair_alloc_system.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libshare/libshare.c
+Copyright: Oracle
+ Gunnar Beutner
+License: CDDL-1.0
+
+Files: lib/libshare/libshare_impl.h
+Copyright: Oracle
+ Gunnar Beutner
+License: CDDL-1.0
+
+Files: lib/libshare/nfs.c
+Copyright: Oracle
+ Gunnar Beutner
+ Cyril Plisko
+License: CDDL-1.0
+
+Files: lib/libshare/nfs.h
+Copyright: Oracle
+ Gunnar Beutner
+License: CDDL-1.0
+
+Files: lib/libspl/asm-generic/atomic.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libspl/asm-i386/atomic.S
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libspl/asm-x86_64/atomic.S
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libspl/getexecname.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libspl/gethrestime.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libspl/getmntany.c
+Copyright: Sun Microsystems, Inc.
+ Ricardo Correia
+ AT&T
+License: CDDL-1.0
+
+Files: lib/libspl/include/*
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libspl/include/sys/dktp/fdisk.h
+Copyright: Sun Microsystems, Inc.
+ AT&T
+License: CDDL-1.0
+
+Files: lib/libspl/include/sys/mntent.h
+Copyright: Sun Microsystems, Inc.
+ AT&T
+License: CDDL-1.0
+
+Files: lib/libspl/include/sys/mnttab.h
+Copyright: Sun Microsystems, Inc.
+ Ricardo Correia
+ AT&T
+License: CDDL-1.0
+
+Files: lib/libspl/include/sys/stat.h
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: lib/libspl/include/sys/sysevent/eventdefs.h
+Copyright: Sun Microsystems, Inc.
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: lib/libspl/include/sys/uio.h
+Copyright: Sun Microsystems, Inc.
+ AT&T
+ The Regents of the University of California
+License: CDDL-1.0
+
+Files: lib/libspl/include/sys/vtoc.h
+Copyright: Sun Microsystems, Inc.
+ AT&T
+License: CDDL-1.0
+
+Files: lib/libspl/list.c
+Copyright: 2008 Sun Microsystems, Inc.  All rights reserved.
+License: CDDL-1.0
+
+Files: lib/libspl/mkdirp.c
+Copyright: Sun Microsystems, Inc.
+ AT&T
+License: CDDL-1.0
+
+Files: lib/libspl/strlcat.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libspl/strlcpy.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libspl/strnlen.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libspl/timestamp.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libspl/xdr.c
+Copyright: Sun Microsystems, Inc.
+ AT&T
+License: CDDL-1.0
+
+Files: lib/libspl/zone.c
+Copyright: 2006 Ricardo Correia
+License: CDDL-1.0
+
+Files: lib/libuutil/uu_alloc.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: lib/libuutil/uu_avl.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libuutil/uu_dprintf.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libuutil/uu_ident.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libuutil/uu_list.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libuutil/uu_misc.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: lib/libuutil/uu_open.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libuutil/uu_pname.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libuutil/uu_string.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: lib/libuutil/uu_strtoint.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_changelist.c
+Copyright: Sun Microsystems, Inc.
+ Ramprakash Jelari
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_config.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_dataset.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+ DEY Storage Systems, Inc.
+ Pawel Jakub Dawidek
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_diff.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_fru.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_graph.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_import.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_iter.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_mount.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_pool.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_sendrecv.c
+Copyright: Oracle
+ Delphix
+ Pawel Jakub Dawidek
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_status.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: lib/libzfs/libzfs_util.c
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: lib/libzpool/kernel.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: lib/libzpool/taskq.c
+Copyright: Sun Microsystems, Inc.
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: lib/libzpool/util.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: man/man8/zdb.8
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: man/man8/zfs.8
+Copyright: Sun Microsystems, Inc.
+ Delphix
+ Nexenta Systems, Inc.
+ Joshua M. Clulow
+License: CDDL-1.0
+
+Files: man/man8/zpool.8
+Copyright: Sun Microsystems, Inc.
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: man/man8/zstreamdump.8
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/avl/avl.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/nvpair/nvpair_alloc_fixed.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/nvpair/nvpair_alloc_spl.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/nvpair/nvpair.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/unicode/u8_textprep.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/unicode/uconv.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zcommon/zfs_comutil.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zcommon/zfs_deleg.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: module/zcommon/zfs_fletcher.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zcommon/zfs_namecheck.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zcommon/zfs_prop.c
+Copyright: Oracle
+ Delphix
+ Robert Milkowski
+License: CDDL-1.0
+
+Files: module/zcommon/zfs_uio.c
+Copyright: Sun Microsystems, Inc.
+ AT&T
+ The Regents of the University of California
+License: CDDL-1.0
+
+Files: module/zcommon/zpool_prop.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: module/zcommon/zprop_common.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/arc.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/bplist.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/bpobj.c
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/dbuf.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/ddt.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/ddt_zap.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/dmu.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/dmu_diff.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/dmu_object.c
+Copyright: Oracle
+ Robert Milkowski
+License: CDDL-1.0
+
+Files: module/zfs/dmu_send.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/dmu_traverse.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/dmu_tx.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/dmu_zfetch.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/dnode.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/dnode_sync.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/dsl_dataset.c
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/dsl_deadlist.c
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/dsl_deleg.c
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/dsl_dir.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/dsl_pool.c
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/dsl_prop.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/dsl_scan.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/dsl_synctask.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/fm.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/gzip.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/lzjb.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/metaslab.c
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/refcount.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/rrwlock.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/sa.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/sha256.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/spa_boot.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/spa.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/space_map.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/spa_config.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/spa_errlog.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/spa_history.c
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/spa_misc.c
+Copyright: Oracle
+ Delphix
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/txg.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/uberblock.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/unique.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/vdev_cache.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/vdev.c
+Copyright: Oracle
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/vdev_file.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/vdev_label.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/vdev_mirror.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/vdev_missing.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/vdev_queue.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/vdev_raidz.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/vdev_root.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/zap.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zap_leaf.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zap_micro.c
+Copyright: Oracle
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/zfs_acl.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zfs_byteswap.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/zfs_ctldir.c
+Copyright: Oracle
+ Lawrence Livermore National Security, LLC.
+License: CDDL-1.0
+
+Files: module/zfs/zfs_debug.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zfs_dir.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zfs_fm.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/zfs_fuid.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zfs_ioctl.c
+Copyright: Oracle
+ Martin Matuska
+ Pawel Jakub Dawidek
+ Joyent, Inc.
+ Nexenta Systems, Inc.
+ Delphix
+License: CDDL-1.0
+
+Files: module/zfs/zfs_log.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zfs_onexit.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zfs_replay.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zfs_rlock.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/zfs_sa.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zfs_vfsops.c
+Copyright: Oracle
+ Robert Milkowski
+License: CDDL-1.0
+
+Files: module/zfs/zfs_vnops.c
+Copyright: Oracle
+ Jeremy Teo
+ Robert Milkowski
+License: CDDL-1.0
+
+Files: module/zfs/zfs_znode.c
+Copyright: Oracle
+ Jeremy Teo
+License: CDDL-1.0
+
+Files: module/zfs/zil.c
+Copyright: Oracle
+ Delphix
+ Robert Milkowski
+License: CDDL-1.0
+
+Files: module/zfs/zio.c
+Copyright: Oracle
+ Delphix
+ Nexenta Systems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/zio_checksum.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zio_compress.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/zio_inject.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zfs/zle.c
+Copyright: Sun Microsystems, Inc.
+License: CDDL-1.0
+
+Files: module/zfs/zpl_export.c
+Copyright: Gunnar Beutner
+License: CDDL-1.0
+
+Files: module/zfs/zrlock.c
+Copyright: Oracle
+License: CDDL-1.0
+
+Files: module/zpios/pios.c
+Copyright: Cluster File Systems, Inc.
+ Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: scripts/kmodtool
+Copyright: 2003-2012, Ville Skyttä <ville.skytta@iki.fi>,
+ 2003-2012, Thorsten Leemhuis <fedora@leemhuis.info>
+ 2003-2012, Nicolas Chauvet <kwizart@gmail.com>
+License: Expat
+
+License: Expat
+ 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.
+
+License: CDDL-1.0
+ COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL)
+ .
+ Version 1.0
+ .
+ 1. Definitions.
+ .
+ 1.1. “Contributor” means each individual or entity that creates or contributes
+ to the creation of Modifications.
+ .
+ 1.2. “Contributor Version” means the combination of the Original Software,
+ prior Modifications used by a Contributor (if any), and the Modifications made
+ by that particular Contributor.
+ .
+ 1.3. “Covered Software” means (a) the Original Software, or (b) Modifications,
+ or (c) the combination of files containing Original Software with files
+ containing Modifications, in each case including portions thereof.
+ .
+ 1.4. “Executable” means the Covered Software in any form other than Source
+ Code.
+ .
+ 1.5. “Initial Developer” means the individual or entity that first makes
+ Original Software available under this License.
+ .
+ 1.6. “Larger Work” means a work which combines Covered Software or portions
+ thereof with code not governed by the terms of this License.
+ .
+ 1.7. “License” means this document.
+ .
+ 1.8. “Licensable” means having the right to grant, to the maximum extent
+ possible, whether at the time of the initial grant or subsequently acquired,
+ any and all of the rights conveyed herein.
+ .
+ 1.9. “Modifications” means the Source Code and Executable form of any of the
+ following:
+ .
+ A. Any file that results from an addition to, deletion from or modification of
+ the contents of a file containing Original Software or previous Modifications;
+ .
+ B. Any new file that contains any part of the Original Software or previous
+ Modification; or
+ .
+ C. Any new file that is contributed or otherwise made available under the terms
+ of this License.
+ .
+ 1.10. “Original Software” means the Source Code and Executable form of computer
+ software code that is originally released under this License.
+ .
+ 1.11. “Patent Claims” means any patent claim(s), now owned or hereafter
+ acquired, including without limitation, method, process, and apparatus claims,
+ in any patent Licensable by grantor.
+ .
+ 1.12. “Source Code” means (a) the common form of computer software code in
+ which modifications are made and (b) associated documentation included in or
+ with such code.
+ .
+ 1.13. “You” (or “Your”) means an individual or a legal entity exercising rights
+ under, and complying with all of the terms of, this License. For legal
+ entities, “You” includes any entity which controls, is controlled by, or is
+ under common control with You. For purposes of this definition, “control” means
+ (a) the power, direct or indirect, to cause the direction or management of such
+ entity, whether by contract or otherwise, or (b) ownership of more than fifty
+ percent (50%) of the outstanding shares or beneficial ownership of such entity.
+ .
+ 2. License Grants.
+ .
+ 2.1. The Initial Developer Grant.
+ .
+ Conditioned upon Your compliance with Section 3.1 below and subject to third
+ party intellectual property claims, the Initial Developer hereby grants You a
+ world-wide, royalty-free, non-exclusive license:
+ .
+ (a) under intellectual property rights (other than patent or trademark)
+ Licensable by Initial Developer, to use, reproduce, modify, display, perform,
+ sublicense and distribute the Original Software (or portions thereof), with or
+ without Modifications, and/or as part of a Larger Work; and
+ .
+ (b) under Patent Claims infringed by the making, using or selling of Original
+ Software, to make, have made, use, practice, sell, and offer for sale, and/or
+ otherwise dispose of the Original Software (or portions thereof).
+ .
+ (c) The licenses granted in Sections 2.1(a) and (b) are effective on the date
+ Initial Developer first distributes or otherwise makes the Original Software
+ available to a third party under the terms of this License.
+ .
+ (d) Notwithstanding Section 2.1(b) above, no patent license is granted: (1) for
+ code that You delete from the Original Software, or (2) for infringements
+ caused by: (i) the modification of the Original Software, or (ii) the
+ combination of the Original Software with other software or devices.
+ .
+ 2.2. Contributor Grant.
+ .
+ Conditioned upon Your compliance with Section 3.1 below and subject to third
+ party intellectual property claims, each Contributor hereby grants You a
+ world-wide, royalty-free, non-exclusive license:
+ .
+ (a) under intellectual property rights (other than patent or trademark)
+ Licensable by Contributor to use, reproduce, modify, display, perform,
+ sublicense and distribute the Modifications created by such Contributor (or
+ portions thereof), either on an unmodified basis, with other Modifications, as
+ Covered Software and/or as part of a Larger Work; and
+ .
+ (b) under Patent Claims infringed by the making, using, or selling of
+ Modifications made by that Contributor either alone and/or in combination with
+ its Contributor Version (or portions of such combination), to make, use, sell,
+ offer for sale, have made, and/or otherwise dispose of: (1) Modifications made
+ by that Contributor (or portions thereof); and (2) the combination of
+ Modifications made by that Contributor with its Contributor Version (or
+ portions of such combination).
+ .
+ (c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on the
+ date Contributor first distributes or otherwise makes the Modifications
+ available to a third party.
+ .
+ (d) Notwithstanding Section 2.2(b) above, no patent license is granted: (1) for
+ any code that Contributor has deleted from the Contributor Version; (2) for
+ infringements caused by: (i) third party modifications of Contributor Version,
+ or (ii) the combination of Modifications made by that Contributor with other
+ software (except as part of the Contributor Version) or other devices; or (3)
+ under Patent Claims infringed by Covered Software in the absence of
+ Modifications made by that Contributor.
+ .
+ 3. Distribution Obligations.
+ .
+ 3.1. Availability of Source Code.
+ .
+ Any Covered Software that You distribute or otherwise make available in
+ Executable form must also be made available in Source Code form and that Source
+ Code form must be distributed only under the terms of this License. You must
+ include a copy of this License with every copy of the Source Code form of the
+ Covered Software You distribute or otherwise make available. You must inform
+ recipients of any such Covered Software in Executable form as to how they can
+ obtain such Covered Software in Source Code form in a reasonable manner on or
+ through a medium customarily used for software exchange.
+ .
+ 3.2. Modifications.
+ .
+ The Modifications that You create or to which You contribute are governed by
+ the terms of this License. You represent that You believe Your Modifications
+ are Your original creation(s) and/or You have sufficient rights to grant the
+ rights conveyed by this License.
+ .
+ 3.3. Required Notices.
+ .
+ You must include a notice in each of Your Modifications that identifies You as
+ the Contributor of the Modification. You may not remove or alter any copyright,
+ patent or trademark notices contained within the Covered Software, or any
+ notices of licensing or any descriptive text giving attribution to any
+ Contributor or the Initial Developer.
+ .
+ 3.4. Application of Additional Terms.
+ .
+ You may not offer or impose any terms on any Covered Software in Source Code
+ form that alters or restricts the applicable version of this License or the
+ recipients’ rights hereunder. You may choose to offer, and to charge a fee for,
+ warranty, support, indemnity or liability obligations to one or more recipients
+ of Covered Software. However, you may do so only on Your own behalf, and not on
+ behalf of the Initial Developer or any Contributor. You must make it absolutely
+ clear that any such warranty, support, indemnity or liability obligation is
+ offered by You alone, and You hereby agree to indemnify the Initial Developer
+ and every Contributor for any liability incurred by the Initial Developer or
+ such Contributor as a result of warranty, support, indemnity or liability terms
+ You offer.
+ .
+ 3.5. Distribution of Executable Versions.
+ .
+ You may distribute the Executable form of the Covered Software under the terms
+ of this License or under the terms of a license of Your choice, which may
+ contain terms different from this License, provided that You are in compliance
+ with the terms of this License and that the license for the Executable form
+ does not attempt to limit or alter the recipient’s rights in the Source Code
+ form from the rights set forth in this License. If You distribute the Covered
+ Software in Executable form under a different license, You must make it
+ absolutely clear that any terms which differ from this License are offered by
+ You alone, not by the Initial Developer or Contributor. You hereby agree to
+ indemnify the Initial Developer and every Contributor for any liability
+ incurred by the Initial Developer or such Contributor as a result of any such
+ terms You offer.
+ .
+ 3.6. Larger Works.
+ .
+ You may create a Larger Work by combining Covered Software with other code not
+ governed by the terms of this License and distribute the Larger Work as a
+ single product. In such a case, You must make sure the requirements of this
+ License are fulfilled for the Covered Software.
+ .
+ 4. Versions of the License.
+ .
+ 4.1. New Versions.
+ .
+ Sun Microsystems, Inc. is the initial license steward and may publish revised
+ and/or new versions of this License from time to time. Each version will be
+ given a distinguishing version number. Except as provided in Section 4.3, no
+ one other than the license steward has the right to modify this License.
+ .
+ 4.2. Effect of New Versions.
+ .
+ You may always continue to use, distribute or otherwise make the Covered
+ Software available under the terms of the version of the License under which
+ You originally received the Covered Software. If the Initial Developer includes
+ a notice in the Original Software prohibiting it from being distributed or
+ otherwise made available under any subsequent version of the License, You must
+ distribute and make the Covered Software available under the terms of the
+ version of the License under which You originally received the Covered
+ Software. Otherwise, You may also choose to use, distribute or otherwise make
+ the Covered Software available under the terms of any subsequent version of the
+ License published by the license steward.
+ .
+ 4.3. Modified Versions.
+ .
+ When You are an Initial Developer and You want to create a new license for Your
+ Original Software, You may create and use a modified version of this License if
+ You: (a) rename the license and remove any references to the name of the
+ license steward (except to note that the license differs from this License);
+ and (b) otherwise make it clear that the license contains terms which differ
+ from this License.
+ .
+ 5. DISCLAIMER OF WARRANTY.
+ .
+ COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN “AS IS” BASIS, WITHOUT
+ WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT
+ LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS,
+ MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK
+ AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD
+ ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL
+ DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING,
+ REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART
+ OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT
+ UNDER THIS DISCLAIMER.
+ .
+ 6. TERMINATION.
+ .
+ 6.1. This License and the rights granted hereunder will terminate automatically
+ if You fail to comply with terms herein and fail to cure such breach within 30
+ days of becoming aware of the breach. Provisions which, by their nature, must
+ remain in effect beyond the termination of this License shall survive.
+ .
+ 6.2. If You assert a patent infringement claim (excluding declaratory judgment
+ actions) against Initial Developer or a Contributor (the Initial Developer or
+ Contributor against whom You assert such claim is referred to as “Participant”)
+ alleging that the Participant Software (meaning the Contributor Version where
+ the Participant is a Contributor or the Original Software where the Participant
+ is the Initial Developer) directly or indirectly infringes any patent, then any
+ and all rights granted directly or indirectly to You by such Participant, the
+ Initial Developer (if the Initial Developer is not the Participant) and all
+ Contributors under Sections 2.1 and/or 2.2 of this License shall, upon 60 days
+ notice from Participant terminate prospectively and automatically at the
+ expiration of such 60 day notice period, unless if within such 60 day period
+ You withdraw Your claim with respect to the Participant Software against such
+ Participant either unilaterally or pursuant to a written agreement with
+ Participant.
+ .
+ 6.3. In the event of termination under Sections 6.1 or 6.2 above, all end user
+ licenses that have been validly granted by You or any distributor hereunder
+ prior to termination (excluding licenses granted to You by any distributor)
+ shall survive termination.
+ .
+ 7. LIMITATION OF LIABILITY.
+ .
+ UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING
+ NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY
+ OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF
+ ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL,
+ INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
+ LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER
+ FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN
+ IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS
+ LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL
+ INJURY RESULTING FROM SUCH PARTY’S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
+ PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR
+ LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND
+ LIMITATION MAY NOT APPLY TO YOU.
+ .
+ 8. U.S. GOVERNMENT END USERS.
+ .
+ The Covered Software is a “commercial item,” as that term is defined in 48
+ C.F.R. 2.101 (Oct. 1995), consisting of “commercial computer software” (as that
+ term is defined at 48 C.F.R. § 252.227-7014(a)(1)) and “commercial computer
+ software documentation” as such terms are used in 48 C.F.R. 12.212 (Sept.
+ 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through
+ 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Software
+ with only those rights set forth herein. This U.S. Government Rights clause is
+ in lieu of, and supersedes, any other FAR, DFAR, or other clause or provision
+ that addresses Government rights in computer software under this License.
+ .
+ 9. MISCELLANEOUS.
+ .
+ This License represents the complete agreement concerning subject matter
+ hereof. If any provision of this License is held to be unenforceable, such
+ provision shall be reformed only to the extent necessary to make it
+ enforceable. This License shall be governed by the law of the jurisdiction
+ specified in a notice contained within the Original Software (except to the
+ extent applicable law, if any, provides otherwise), excluding such
+ jurisdiction’s conflict-of-law provisions. Any litigation relating to this
+ License shall be subject to the jurisdiction of the courts located in the
+ jurisdiction and venue specified in a notice contained within the Original
+ Software, with the losing party responsible for costs, including, without
+ limitation, court costs and reasonable attorneys’ fees and expenses. The
+ application of the United Nations Convention on Contracts for the International
+ Sale of Goods is expressly excluded. Any law or regulation which provides that
+ the language of a contract shall be construed against the drafter shall not
+ apply to this License. You agree that You alone are responsible for compliance
+ with the United States export administration regulations (and the export
+ control laws and regulation of any other countries) when You use, distribute or
+ otherwise make available any Covered Software.
+ .
+ 10. RESPONSIBILITY FOR CLAIMS.
+ .
+ As between Initial Developer and the Contributors, each party is responsible
+ for claims and damages arising, directly or indirectly, out of its utilization
+ of rights under this License and You agree to work with Initial Developer and
+ Contributors to distribute such responsibility on an equitable basis. Nothing
+ herein is intended or shall be deemed to constitute any admission of liability.
diff --git a/debian/examples/zfsutils/etc/sudoers.d/zfs b/debian/examples/zfsutils/etc/sudoers.d/zfs
new file mode 100644 (file)
index 0000000..0fbd5b9
--- /dev/null
@@ -0,0 +1,28 @@
+## Allow read-only ZoL commands to be called through sudo
+## without a password. Remove the first '#' column to enable.
+##
+## CAUTION: Any syntax error introduced here will break sudo.
+##
+## Cmnd alias specification
+#Cmnd_Alias C_ZFS = \
+#  /sbin/zfs "", /sbin/zfs help *, \
+#  /sbin/zfs get, /sbin/zfs get *, \
+#  /sbin/zfs list, /sbin/zfs list *, \
+#  /sbin/zpool "", /sbin/zpool help *, \
+#  /sbin/zpool iostat, /sbin/zpool iostat *, \
+#  /sbin/zpool list, /sbin/zpool list *, \
+#  /sbin/zpool status, /sbin/zpool status *, \
+#  /sbin/zpool upgrade, /sbin/zpool upgrade -v
+#
+#Runas_Alias R_ROOT = root
+#
+## User privilege specification
+#root    ALL=(ALL) ALL
+#
+## Members of the admin group may gain root privileges
+#%adm ALL=(ALL) ALL  # linux
+#%admin ALL=(ALL) ALL  # linux
+#%staff ALL=(ALL) ALL  # solaris
+#
+## allow any user to use basic read-only ZFS commands
+#ALL ALL = (R_ROOT) NOPASSWD: C_ZFS
diff --git a/debian/libnvpair1linux-udeb.install b/debian/libnvpair1linux-udeb.install
new file mode 100644 (file)
index 0000000..9f3c105
--- /dev/null
@@ -0,0 +1 @@
+lib/libnvpair/.libs/libnvpair.so.*[0-9]        lib
diff --git a/debian/libnvpair1linux.docs b/debian/libnvpair1linux.docs
new file mode 100644 (file)
index 0000000..425a0e5
--- /dev/null
@@ -0,0 +1,2 @@
+COPYRIGHT
+OPENSOLARIS.LICENSE
diff --git a/debian/libnvpair1linux.install b/debian/libnvpair1linux.install
new file mode 100644 (file)
index 0000000..34a0f61
--- /dev/null
@@ -0,0 +1 @@
+lib/libnvpair.so.*
diff --git a/debian/libuutil1linux-udeb.install b/debian/libuutil1linux-udeb.install
new file mode 100644 (file)
index 0000000..eb549b6
--- /dev/null
@@ -0,0 +1 @@
+lib/libuutil/.libs/libuutil.so.*[0-9]  lib
diff --git a/debian/libuutil1linux.docs b/debian/libuutil1linux.docs
new file mode 100644 (file)
index 0000000..425a0e5
--- /dev/null
@@ -0,0 +1,2 @@
+COPYRIGHT
+OPENSOLARIS.LICENSE
diff --git a/debian/libuutil1linux.install b/debian/libuutil1linux.install
new file mode 100644 (file)
index 0000000..c7fa63e
--- /dev/null
@@ -0,0 +1 @@
+lib/libuutil.so.*
diff --git a/debian/libzfs2linux-udeb.install b/debian/libzfs2linux-udeb.install
new file mode 100644 (file)
index 0000000..307192a
--- /dev/null
@@ -0,0 +1 @@
+lib/libzfs/.libs/libzfs.so.*[0-9]      lib
diff --git a/debian/libzfs2linux.docs b/debian/libzfs2linux.docs
new file mode 100644 (file)
index 0000000..425a0e5
--- /dev/null
@@ -0,0 +1,2 @@
+COPYRIGHT
+OPENSOLARIS.LICENSE
diff --git a/debian/libzfs2linux.install b/debian/libzfs2linux.install
new file mode 100644 (file)
index 0000000..660dede
--- /dev/null
@@ -0,0 +1,2 @@
+lib/libzfs.so.*
+lib/libzfs_core.so.*
diff --git a/debian/libzfslinux-dev.docs b/debian/libzfslinux-dev.docs
new file mode 100644 (file)
index 0000000..425a0e5
--- /dev/null
@@ -0,0 +1,2 @@
+COPYRIGHT
+OPENSOLARIS.LICENSE
diff --git a/debian/libzfslinux-dev.install b/debian/libzfslinux-dev.install
new file mode 100644 (file)
index 0000000..3b97b97
--- /dev/null
@@ -0,0 +1,3 @@
+lib/*.a usr/lib/
+usr/include
+usr/lib/*.so
diff --git a/debian/libzpool1linux-udeb.install b/debian/libzpool1linux-udeb.install
new file mode 100644 (file)
index 0000000..b5382a1
--- /dev/null
@@ -0,0 +1 @@
+lib/libzpool/.libs/libzpool.so.*[0-9]  lib
diff --git a/debian/libzpool1linux.docs b/debian/libzpool1linux.docs
new file mode 100644 (file)
index 0000000..425a0e5
--- /dev/null
@@ -0,0 +1,2 @@
+COPYRIGHT
+OPENSOLARIS.LICENSE
diff --git a/debian/libzpool1linux.install b/debian/libzpool1linux.install
new file mode 100644 (file)
index 0000000..d886d29
--- /dev/null
@@ -0,0 +1 @@
+lib/libzpool.so.*
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644 (file)
index 0000000..e138592
--- /dev/null
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] zfs-dkms.templates
diff --git a/debian/po/cs.po b/debian/po/cs.po
new file mode 100644 (file)
index 0000000..cb81892
--- /dev/null
@@ -0,0 +1,63 @@
+# Czech translation of PO debconf template for package zfs-linux.
+# Copyright (C) 2013 Michal Simunek
+# This file is distributed under the same license as the zfs-linux package.
+# Michal Simunek <michal.simunek@gmail.com>, 2013.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: zfs-linux 0.6.1-1\n"
+"Report-Msgid-Bugs-To: zfs-linux@packages.debian.org\n"
+"POT-Creation-Date: 2013-07-04 22:09+0800\n"
+"PO-Revision-Date: 2013-07-21 09:57+0200\n"
+"Last-Translator: Michal Simunek <michal.simunek@gmail.com>\n"
+"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
+"Language: cs\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "Abort building ZFS on a 32-bit kernel?"
+msgstr "Přerušit sestavování ZFS na 32 bitovém kernelu?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "You are attempting to build ZFS against a 32-bit running kernel."
+msgstr "Pokoušíte se sestavit ZFS oproti běžícímu 32 bitovému kernelu."
+
+#. Type: boolean
+#. Description
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001 ../zfs-dkms.templates:2001
+msgid ""
+"Although possible, building in a 32-bit environment is unsupported and "
+"likely to cause instability leading to possible data corruption. You are "
+"strongly advised to use a 64-bit kernel; if you do decide to proceed with "
+"using ZFS on this kernel then keep in mind that it is at your own risk."
+msgstr ""
+"Přestože je to možné, sestavování ve 32 bitovém prostředí není podporováno "
+"a může způsobit nestabilitu vedoucí k možnému poškození dat. Důrazně vám "
+"doporučujeme používat 64 bitový kernel; rozhodnete-li se pokračovat s používáním "
+"ZFS na tomto kernelu, pak mějte na paměti, že je to na vaše vlastní nebezpečí."
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid "Abort building ZFS on an unknown kernel?"
+msgstr "Přerušit sestavování ZFS na neznámém kernelu?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid ""
+"You are attempting to build ZFS against a running kernel that could not be "
+"identified as 32-bit or 64-bit. If you are not completely sure that the "
+"running kernel is a 64-bit one, you should probably stop the build."
+msgstr ""
+"Pokoušíte se sestavit ZFS oproti běžícímu kernelu, u kterého se nepodařilo "
+"rozpoznat, zda-li je 32 bitový nebo 64 bitový. Pokud si nejste zcela jisti, "
+"že je běžící kernel 64 bitový, měli byste nejspíš sestavování ukončit."
diff --git a/debian/po/da.po b/debian/po/da.po
new file mode 100644 (file)
index 0000000..c483d65
--- /dev/null
@@ -0,0 +1,65 @@
+# Danish translation zfs-linux.
+# Copyright (C) 2013 zfs-linux og nedenstående oversættere.
+# This file is distributed under the same license as the zfs-linux package.
+# Joe Hansen <joedalton2@yahoo.dk>, 2013.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: zfs-linux\n"
+"Report-Msgid-Bugs-To: zfs-linux@packages.debian.org\n"
+"POT-Creation-Date: 2013-07-04 22:09+0800\n"
+"PO-Revision-Date: 2013-07-07 06:57+0100\n"
+"Last-Translator: Joe Hansen <joedalton2@yahoo.dk>\n"
+"Language-Team: Danish <debian-l10n-danish@lists.debian.org>\n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "Abort building ZFS on a 32-bit kernel?"
+msgstr "Afbryd bygning af ZFS på en 32-bit kerne?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "You are attempting to build ZFS against a 32-bit running kernel."
+msgstr "Du forsøger at bygge ZFS mod en 32-bit kørende kerne."
+
+#. Type: boolean
+#. Description
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001 ../zfs-dkms.templates:2001
+msgid ""
+"Although possible, building in a 32-bit environment is unsupported and "
+"likely to cause instability leading to possible data corruption. You are "
+"strongly advised to use a 64-bit kernel; if you do decide to proceed with "
+"using ZFS on this kernel then keep in mind that it is at your own risk."
+msgstr ""
+"Selvom det er muligt, så er bygning af et 32-bit miljø ikke understøttet "
+"og vil sandsynligvis medføre ustabilitet, der kan føre til dataødelæggelse. "
+"Du rådes på det kraftigste til at bruge en 64-bit kerne; hvis du vælger "
+"at fortsætte med at bruge ZFS på denne kerne så husk, at det er på egen "
+"risiko."
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid "Abort building ZFS on an unknown kernel?"
+msgstr "Afbryd bygning af ZFS på en ukendt kerne?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid ""
+"You are attempting to build ZFS against a running kernel that could not be "
+"identified as 32-bit or 64-bit. If you are not completely sure that the "
+"running kernel is a 64-bit one, you should probably stop the build."
+msgstr ""
+"Du forsøger at bygge ZFS mod en kørende kerne, som ikke kan identificeres "
+"som enten 32-bit eller 64-bit. Hvis du ikke er fuldstændig sikker på, at den "
+"kørende kerne er en 64-bit, så bør du stoppe bygningen."
+
diff --git a/debian/po/de.po b/debian/po/de.po
new file mode 100644 (file)
index 0000000..fd3cd79
--- /dev/null
@@ -0,0 +1,64 @@
+# Translation of zfs-linux debconf templates to German
+# Copyright (C) Helge Kreutzmann <debian@helgefjell.de>, 2013.
+# This file is distributed under the same license as the zfs-linux package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: zfs-linux 0.6.1-1\n"
+"Report-Msgid-Bugs-To: zfs-linux@packages.debian.org\n"
+"POT-Creation-Date: 2013-07-04 22:09+0800\n"
+"PO-Revision-Date: 2013-07-07 19:11+0200\n"
+"Last-Translator: Helge Kreutzmann <debian@helgefjell.de>\n"
+"Language-Team: de <debian-l10n-german@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "Abort building ZFS on a 32-bit kernel?"
+msgstr "Bau von ZFS auf einem 32-Bit-Kernel abbrechen?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "You are attempting to build ZFS against a 32-bit running kernel."
+msgstr "Sie versuchen, ZFS mit einem laufenden 32-Bit-Kernel zu bauen."
+
+#. Type: boolean
+#. Description
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001 ../zfs-dkms.templates:2001
+msgid ""
+"Although possible, building in a 32-bit environment is unsupported and "
+"likely to cause instability leading to possible data corruption. You are "
+"strongly advised to use a 64-bit kernel; if you do decide to proceed with "
+"using ZFS on this kernel then keep in mind that it is at your own risk."
+msgstr ""
+"Dies ist zwar möglich, allerdings wird der Bau in einer 32-Bit-Umgebung nicht "
+"unterstützt und wird wahrscheinlich Instabilitäten verursachen, die "
+"möglicherweise Daten beschädigen. Es wird Ihnen nachdrücklich empfohlen, "
+"einen 64-Bit-Kernel zu verwenden; falls Sie sich entscheiden, mit der "
+"Verwendung von ZFS unter diesem Kernel fortzufahren, denken Sie daran, dass "
+"dies auf eigenes Risiko passiert."
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid "Abort building ZFS on an unknown kernel?"
+msgstr "Bau von ZFS auf einem unbekannten Kernel abbrechen?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid ""
+"You are attempting to build ZFS against a running kernel that could not be "
+"identified as 32-bit or 64-bit. If you are not completely sure that the "
+"running kernel is a 64-bit one, you should probably stop the build."
+msgstr ""
+"Sie versuchen, ZFS mit einem Kernel zu bauen, der weder als 32-Bit noch als "
+"64-Bit identifiziert werden konnte. Falls Sie sich nicht absolut sicher sind, "
+"dass der laufende Kernel 64-bittig ist, sollten Sie wahrscheinlich den Bau "
+"abbrechen."
diff --git a/debian/po/fr.po b/debian/po/fr.po
new file mode 100644 (file)
index 0000000..d55c3e4
--- /dev/null
@@ -0,0 +1,64 @@
+# Translation of zfs-linux debconf templates to French. 
+# Copyright (C) 2013, French l10n team <debian-l10n-french@lists.debian.org>
+# This file is distributed under the same license as the zfs-linux package.
+# Julien Patriarca <leatherface@debian.org>, 2013.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: zfs-linux\n"
+"Report-Msgid-Bugs-To: zfs-linux@packages.debian.org\n"
+"POT-Creation-Date: 2013-07-04 22:09+0800\n"
+"PO-Revision-Date: 2013-07-05 11:36+0100\n"
+"Last-Translator: Julien Patriarca <leatherface@debian.org>\n"
+"Language-Team: FRENCH <debian-l10n-french@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.5.4\n"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "Abort building ZFS on a 32-bit kernel?"
+msgstr "Abandonner la compilation de ZFS sur un noyau 32 bits ?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "You are attempting to build ZFS against a 32-bit running kernel."
+msgstr "Vous êtes en train d'essayer de compiler ZFS sur un noyau 32 bits."
+
+#. Type: boolean
+#. Description
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001 ../zfs-dkms.templates:2001
+msgid ""
+"Although possible, building in a 32-bit environment is unsupported and "
+"likely to cause instability leading to possible data corruption. You are "
+"strongly advised to use a 64-bit kernel; if you do decide to proceed with "
+"using ZFS on this kernel then keep in mind that it is at your own risk."
+msgstr ""
+"Même si c'est en théorie possible, compiler au sein d'un environnement "
+"32 bits n'est pas géré et peut entraîner une instabilité du système "
+"pouvant aboutir à une corruption des données. Il vous est fortement "
+"recommandé d'utiliser un noyau 64 bits ; si vous décidez d'utiliser ZFS sur "
+"ce noyau, gardez à l'esprit que c'est à vos propres risques."
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid "Abort building ZFS on an unknown kernel?"
+msgstr "Abandonner la compilation de ZFS sur un noyau inconnu ?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid ""
+"You are attempting to build ZFS against a running kernel that could not be "
+"identified as 32-bit or 64-bit. If you are not completely sure that the "
+"running kernel is a 64-bit one, you should probably stop the build."
+msgstr ""
+"Vous êtes en train d'essayer de compiler ZFS sur un noyau qui n'a pu être "
+"identifié comme 32 bits ou 64 bits. Si vous n'êtes pas certain que le noyau "
+"actuel est un 64 bits, vous devriez arrêter la compilation."
diff --git a/debian/po/ja.po b/debian/po/ja.po
new file mode 100644 (file)
index 0000000..7a92783
--- /dev/null
@@ -0,0 +1,64 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# victory <victory.deb@gmail.com>, 2013.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: zfs-linux\n"
+"Report-Msgid-Bugs-To: zfs-linux@packages.debian.org\n"
+"POT-Creation-Date: 2013-07-04 22:09+0800\n"
+"PO-Revision-Date: 2013-07-04 23:09+0900\n"
+"Last-Translator: victory <victory.deb@gmail.com>\n"
+"Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "Abort building ZFS on a 32-bit kernel?"
+msgstr "32 ビットのカーネルでの ZFS のビルドを中止しますか?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "You are attempting to build ZFS against a 32-bit running kernel."
+msgstr ""
+"ZFS を 32 ビットで動作しているカーネルに対してビルドしようとしています。"
+
+#. Type: boolean
+#. Description
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001 ../zfs-dkms.templates:2001
+msgid ""
+"Although possible, building in a 32-bit environment is unsupported and "
+"likely to cause instability leading to possible data corruption. You are "
+"strongly advised to use a 64-bit kernel; if you do decide to proceed with "
+"using ZFS on this kernel then keep in mind that it is at your own risk."
+msgstr ""
+"32 ビット環境でのビルドは可能ではあるもののサポート外で、安定性の問題を生じる"
+"可能性が高く、データの破損につながるおそれがあります。64 ビットカーネルの利用"
+"を強く勧めます。このカーネルでの ZFS の利用続行は自己責任であることに留意して"
+"ください。"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid "Abort building ZFS on an unknown kernel?"
+msgstr "未知のカーネルでの ZFS のビルドを中止しますか?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid ""
+"You are attempting to build ZFS against a running kernel that could not be "
+"identified as 32-bit or 64-bit. If you are not completely sure that the "
+"running kernel is a 64-bit one, you should probably stop the build."
+msgstr ""
+"32 ビットで動作しているのか 64 ビットで動作しているのか特定できないカーネルに"
+"対して ZFS をビルドしようとしています。このカーネルが 64 ビットで動作している"
+"ことに確信が持てない場合は、恐らくビルドを中止すべきです。"
diff --git a/debian/po/pl.po b/debian/po/pl.po
new file mode 100644 (file)
index 0000000..e02c513
--- /dev/null
@@ -0,0 +1,68 @@
+# Translation of zfs-linux debconf templates to Polish.
+# Copyright (C) 2013
+# This file is distributed under the same license as the zfs-linux package.
+#
+# Michał Kułach <michal.kulach@gmail.com>, 2013.
+msgid ""
+msgstr ""
+"Project-Id-Version: zfs-linux\n"
+"Report-Msgid-Bugs-To: zfs-linux@packages.debian.org\n"
+"POT-Creation-Date: 2013-07-04 22:09+0800\n"
+"PO-Revision-Date: 2013-07-13 19:48+0200\n"
+"Last-Translator: Michał Kułach <michal.kulach@gmail.com>\n"
+"Language-Team: Polish <debian-l10n-polish@lists.debian.org>\n"
+"Language: pl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2);\n"
+"X-Generator: Lokalize 1.4\n"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "Abort building ZFS on a 32-bit kernel?"
+msgstr "Przerwać budowanie ZFS na 32-bitowym jądrze?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "You are attempting to build ZFS against a 32-bit running kernel."
+msgstr "Ma miejsce próba zbudowania ZFS na działającym, 32-bitowym jądrze."
+
+#. Type: boolean
+#. Description
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001 ../zfs-dkms.templates:2001
+msgid ""
+"Although possible, building in a 32-bit environment is unsupported and "
+"likely to cause instability leading to possible data corruption. You are "
+"strongly advised to use a 64-bit kernel; if you do decide to proceed with "
+"using ZFS on this kernel then keep in mind that it is at your own risk."
+msgstr ""
+"Choć jest to możliwe, to jednak budowanie w 32-bitowym środowisku jest "
+"nieobsługiwane i może powodować niestabilność prowadzącą w konsekwencji do "
+"utraty danych. Zaleca się użyć jądra 64-bitowego. Kontynuując używanie ZFS na "
+"tym jądrze robi się to na własną odpowiedzialność."
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid "Abort building ZFS on an unknown kernel?"
+msgstr "Przerwać budowanie ZFS na nieznanym jądrze?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid ""
+"You are attempting to build ZFS against a running kernel that could not be "
+"identified as 32-bit or 64-bit. If you are not completely sure that the "
+"running kernel is a 64-bit one, you should probably stop the build."
+msgstr ""
+"Ma miejsce próba zbudowania ZFS na działającym jądrze którego nie można "
+"zidentyfikować jako 32-bitowe lub 64-bitowe. Jeśli nie jest się całkowicie "
+"pewnym że jest to jądro 64-bitowe powinno się przerwać tę instalację."
+
+
diff --git a/debian/po/pt.po b/debian/po/pt.po
new file mode 100644 (file)
index 0000000..e54300f
--- /dev/null
@@ -0,0 +1,65 @@
+# Portuguese translation for zfs-linux's debconf messages
+# Copyright (C) 2013 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the zfs-linux package.
+# Miguel FIgueiredo <elmig@debianpt.org>, 2013.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: zfs-linux\n"
+"Report-Msgid-Bugs-To: zfs-linux@packages.debian.org\n"
+"POT-Creation-Date: 2013-07-04 22:09+0800\n"
+"PO-Revision-Date: 2013-07-07 13:57+0100\n"
+"Last-Translator: Miguel Figueiredo <elmig@debianpt.org>\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"Language: Portuguese\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "Abort building ZFS on a 32-bit kernel?"
+msgstr "Abortar a compilação de ZFS num kernel 32-bit?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "You are attempting to build ZFS against a 32-bit running kernel."
+msgstr "Está a tentar compilar ZFS contra um kernel 32-bit em execução."
+
+#. Type: boolean
+#. Description
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001 ../zfs-dkms.templates:2001
+msgid ""
+"Although possible, building in a 32-bit environment is unsupported and "
+"likely to cause instability leading to possible data corruption. You are "
+"strongly advised to use a 64-bit kernel; if you do decide to proceed with "
+"using ZFS on this kernel then keep in mind that it is at your own risk."
+msgstr ""
+"Embora possível, compilar num ambiente 32-bit, não é suportado e "
+"possivelmente pode levar a instabilidade e corrupção de dados. É fortemente "
+"aconselhado a utilizar um kernel 64-bit; Se decidir utilizar ZFS com este "
+"kernel lembre-se que está por sua conta e risco."
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid "Abort building ZFS on an unknown kernel?"
+msgstr "Abortar a compilação de ZFS num kernel desconhecido?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid ""
+"You are attempting to build ZFS against a running kernel that could not be "
+"identified as 32-bit or 64-bit. If you are not completely sure that the "
+"running kernel is a 64-bit one, you should probably stop the build."
+msgstr ""
+"Está a tentar compilar ZFS contra um kernel em execução que não pode ser "
+"identificado como sendo de 32-bit ou de 64-bit. Se não tiver a certeza de "
+"que o kernel em execução seja de 64-bit, provavelmente deverá parar "
+"a compilação."
+
diff --git a/debian/po/ru.po b/debian/po/ru.po
new file mode 100644 (file)
index 0000000..c93054c
--- /dev/null
@@ -0,0 +1,67 @@
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the zfs-linux package.
+#
+# Yuri Kozlov <yuray@komyakino.ru>, 2013.
+msgid ""
+msgstr ""
+"Project-Id-Version: zfs-linux 0.6.1-1\n"
+"Report-Msgid-Bugs-To: zfs-linux@packages.debian.org\n"
+"POT-Creation-Date: 2013-07-04 22:09+0800\n"
+"PO-Revision-Date: 2013-07-06 21:39+0400\n"
+"Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n"
+"Language-Team: Russian <man-pages-ru-talks@lists.sourceforge.net>\n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<"
+"=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"X-Generator: Lokalize 1.4\n"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "Abort building ZFS on a 32-bit kernel?"
+msgstr "Прервать сборку ZFS для 32-битного ядра?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "You are attempting to build ZFS against a 32-bit running kernel."
+msgstr "Вы пытаетесь собрать ZFS для выполняющегося 32-битного ядра."
+
+#. Type: boolean
+#. Description
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001 ../zfs-dkms.templates:2001
+msgid ""
+"Although possible, building in a 32-bit environment is unsupported and "
+"likely to cause instability leading to possible data corruption. You are "
+"strongly advised to use a 64-bit kernel; if you do decide to proceed with "
+"using ZFS on this kernel then keep in mind that it is at your own risk."
+msgstr ""
+"Хотя это и возможно, сборка в 32-битном окружении не поддерживается "
+"и, вероятно, нестабильная работа приведёт к повреждению данных. "
+"Настоятельно рекомендуем использовать 64-битное ядро; "
+"если вы решите продолжить использовать ZFS с этим ядром, "
+"то вас предупредили."
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid "Abort building ZFS on an unknown kernel?"
+msgstr "Прервать сборку ZFS для неизвестного ядра?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid ""
+"You are attempting to build ZFS against a running kernel that could not be "
+"identified as 32-bit or 64-bit. If you are not completely sure that the "
+"running kernel is a 64-bit one, you should probably stop the build."
+msgstr ""
+"Вы пытаетесь собрать ZFS для выполняющегося ядра с неизвестной "
+"разрядностью. Если вы абсолютно не уверены, что работающее ядро "
+"64-битное, лучше прервать сборку."
+
diff --git a/debian/po/sv.po b/debian/po/sv.po
new file mode 100644 (file)
index 0000000..70f104e
--- /dev/null
@@ -0,0 +1,65 @@
+# Translation of zfs-linux debconf template to Swedish
+# Copyright (C) 2013 Martin Bagge <brother@bsnet.se>
+# This file is distributed under the same license as the zfs-linux package.
+#
+# Martin Bagge <brother@bsnet.se>, 2013
+msgid ""
+msgstr ""
+"Project-Id-Version: zfs-linux\n"
+"Report-Msgid-Bugs-To: zfs-linux@packages.debian.org\n"
+"POT-Creation-Date: 2013-07-04 22:09+0800\n"
+"PO-Revision-Date: 2013-07-10 10:42+0100\n"
+"Last-Translator: Martin Bagge / brother <brother@bsnet.se>\n"
+"Language-Team: Swedish <debian-l10n-swedish@lists.debian.org>\n"
+"Language: Swedish\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.5.4\n"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "Abort building ZFS on a 32-bit kernel?"
+msgstr "Ska bygget av ZFS på en 32-bitars kärna avbrytas?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "You are attempting to build ZFS against a 32-bit running kernel."
+msgstr "Du försöker bygga ZFS mot en 32-bitars kärna."
+
+#. Type: boolean
+#. Description
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001 ../zfs-dkms.templates:2001
+msgid ""
+"Although possible, building in a 32-bit environment is unsupported and "
+"likely to cause instability leading to possible data corruption. You are "
+"strongly advised to use a 64-bit kernel; if you do decide to proceed with "
+"using ZFS on this kernel then keep in mind that it is at your own risk."
+msgstr ""
+"Det är inte omöjligt men att bygga i en 32-bitars-miljö är inte något som "
+"stöds och kommer troligen att leda till ostabilt system och det i sin tur "
+"kan elda till dataförlust. Att använda en 64-bitars kärna är starkt "
+"rekommenderat. Om du väljer att fortsätta med att använda ZFS på den här "
+"kärnan är det helt och hållet på din egen risk."
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid "Abort building ZFS on an unknown kernel?"
+msgstr "Ska bygget av ZFS på en okänd kärntyp avbrytas?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid ""
+"You are attempting to build ZFS against a running kernel that could not be "
+"identified as 32-bit or 64-bit. If you are not completely sure that the "
+"running kernel is a 64-bit one, you should probably stop the build."
+msgstr ""
+"Du försöker bygga ZFS mot en kärna som varken kan identifieras som 32-bitars "
+"eller 64-bitars. Om du inte är helt säker på att du kör en 64-bitars kärna "
+"ska du avbryta bygget nu."
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644 (file)
index 0000000..f63c498
--- /dev/null
@@ -0,0 +1,57 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: zfs-linux\n"
+"Report-Msgid-Bugs-To: zfs-linux@packages.debian.org\n"
+"POT-Creation-Date: 2013-07-04 22:09+0800\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "Abort building ZFS on a 32-bit kernel?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "You are attempting to build ZFS against a 32-bit running kernel."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001 ../zfs-dkms.templates:2001
+msgid ""
+"Although possible, building in a 32-bit environment is unsupported and "
+"likely to cause instability leading to possible data corruption. You are "
+"strongly advised to use a 64-bit kernel; if you do decide to proceed with "
+"using ZFS on this kernel then keep in mind that it is at your own risk."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid "Abort building ZFS on an unknown kernel?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid ""
+"You are attempting to build ZFS against a running kernel that could not be "
+"identified as 32-bit or 64-bit. If you are not completely sure that the "
+"running kernel is a 64-bit one, you should probably stop the build."
+msgstr ""
diff --git a/debian/po/zh_CN.po b/debian/po/zh_CN.po
new file mode 100644 (file)
index 0000000..efcc6b8
--- /dev/null
@@ -0,0 +1,62 @@
+# English translations for zfs-linux package.
+# Copyright (C) 2013 THE zfs-linux'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the zfs-linux package.
+# Aron <aron@debian.org>, 2013.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: zfs-linux\n"
+"Report-Msgid-Bugs-To: zfs-linux@packages.debian.org\n"
+"POT-Creation-Date: 2013-07-04 22:09+0800\n"
+"PO-Revision-Date: 2013-07-04 22:45+0800\n"
+"Last-Translator: Aron <aron@debian.org>\n"
+"Language-Team: Chinese (Simplified) <debian-l10n-chinese@lists.debian.org>\n"
+"Language: zh_CN\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "Abort building ZFS on a 32-bit kernel?"
+msgstr "中断在32位内核上编译?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001
+msgid "You are attempting to build ZFS against a 32-bit running kernel."
+msgstr "您正试图在32位内核上编译ZFS支持。"
+
+#. Type: boolean
+#. Description
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:1001 ../zfs-dkms.templates:2001
+msgid ""
+"Although possible, building in a 32-bit environment is unsupported and "
+"likely to cause instability leading to possible data corruption. You are "
+"strongly advised to use a 64-bit kernel; if you do decide to proceed with "
+"using ZFS on this kernel then keep in mind that it is at your own risk."
+msgstr ""
+"尽管在32位系统上可能编译成功,这样做是不受支持的,并可能造成导致数据损坏"
+"的不稳定情况。我们强烈建议您使用64位内核,如果您决定继续,请牢记您将自己"
+"承担风险。"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid "Abort building ZFS on an unknown kernel?"
+msgstr "中断在未知内核上编译?"
+
+#. Type: boolean
+#. Description
+#: ../zfs-dkms.templates:2001
+msgid ""
+"You are attempting to build ZFS against a running kernel that could not be "
+"identified as 32-bit or 64-bit. If you are not completely sure that the "
+"running kernel is a 64-bit one, you should probably stop the build."
+msgstr ""
+"无法确定您即将编译ZFS支持的内核是32位或64位。如果您不能确定当前运行的内核"
+"是64位的,那么建议您停止编译。"
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..b5bf503
--- /dev/null
@@ -0,0 +1,226 @@
+#!/usr/bin/make -f
+
+LSB_DISTRIBUTOR := $(shell lsb_release -is)
+NAME := $(shell awk '$$1 == "Name:" { print $$2; }' META)
+VERSION := $(shell dpkg-parsechangelog \
+  | awk '$$1 == "Version:" { print $$2; }' | cut -d- -f1)
+
+DKMSFILES := module include config zfs.release.in autogen.sh META AUTHORS \
+               DISCLAIMER COPYRIGHT OPENSOLARIS.LICENSE README.markdown
+
+export SHLIB_MAJOR = 1
+
+ifndef BUILD_UDEB
+BUILD_UDEB=false
+endif
+
+ifndef DEB_HOST_ARCH
+DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
+endif
+
+ifndef KVERS
+KVERS=$(shell uname -r)
+endif
+
+ifndef SPL
+SPL=/usr/src/spl-$(VERSION)
+endif
+
+non_epoch_version=$(shell echo $(KVERS) | perl -pe 's/^\d+://')
+PACKAGE=zfs
+pmodules = $(PACKAGE)-modules-$(non_epoch_version)
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+       dh $@ --with dkms --parallel
+
+override_dh_auto_configure:
+       @cp debian/control.in debian/control
+ifeq ($(BUILD_UDEB), true)
+       cat debian/control.udeb.in >> debian/control
+endif
+
+       @# Embed the downstream version in the module.
+       @sed -e 's/^Version:.*/Version:      $(VERSION)/' -i.orig META
+
+       @# Create the makefiles and configure script.
+       ./autogen.sh
+
+       @# Build the userland, but don't build the kernel modules.
+       dh_auto_configure -- \
+         --bindir=/bin \
+         --sbindir=/sbin \
+         --libdir=/lib \
+         --with-udevdir=/lib/udev \
+         --with-config=user
+
+override_dh_auto_test:
+       # The dh_auto_test rule is disabled because
+       # `make check` cannot run in an unprivileged build environment.
+
+override_dh_auto_install:
+       @# Install the utilities.
+       $(MAKE) install DESTDIR='$(CURDIR)/debian/tmp'
+
+       @# Get a bare copy of the source code for DKMS.
+       @# This creates the $(CURDIR)/$(NAME)-$(VERSION)/ tree, which does not
+       @# contain the userland sources. NB: Remove-userland-dist-rules.patch
+       $(MAKE) distdir
+
+       @# Install the DKMS source.
+       @# We only want the files needed to build the modules
+       mkdir -p '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)'
+       $(foreach file,$(DKMSFILES),mv '$(CURDIR)/$(NAME)-$(VERSION)/$(file)' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)' || exit 1;)
+       @# Hellish awk line:
+       @#  * Deletes from configure.ac the parts not needed for building the kernel module
+       @#     * It deletes from inside AC_CONFIG_FILES([]) everything except:
+       @#        (Makefile$|include/|module/|*.release$)
+       @#  * Takes care of spaces and tabs
+       awk '/^AC_CONFIG_FILES\(\[/,/^\]\)/ { if ($$0 !~ /^(AC_CONFIG_FILES\(\[([ \t]+)?$$|\]\)([ \t]+)?$$|([ \t]+)?(include\/|module\/|Makefile([ \t]+)?$$|zfs\.release([ \t]+)?$$))/){next} } {print}' \
+               '$(CURDIR)/$(NAME)-$(VERSION)/configure.ac' > '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/configure.ac'
+       @# Set "SUBDIRS = module include" for CONFIG_KERNEL and remove SUBDIRS for all other configs.
+       sed '1,/CONFIG_KERNEL/s/SUBDIRS.*=.*//g;s/SUBDIRS.*=.*/SUBDIRS = module include/g;' \
+               '$(CURDIR)/$(NAME)-$(VERSION)/Makefile.am' > '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/Makefile.am'
+       @# Sanity test
+       grep -q 'SUBDIRS = module include' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/Makefile.am'
+       @# Run autogen on the stripped source tree
+       cd '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)'; ./autogen.sh
+       rm -fr '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/autom4te.cache'
+
+       @# This shunt allows DKMS to install the Module.symvers and zfs_config.h
+       @# files to the ${dkms_tree} area through the POST_INSTALL directive.
+       echo '#!/bin/sh'  >'$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/cp'
+       echo 'cp "$$@"'  >>'$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/cp'
+       chmod 755 '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/cp'
+
+       mkdir -p $(CURDIR)/debian/tmp/usr/lib
+       for i in `ls $(CURDIR)/debian/tmp/lib/*.so`; do \
+               ln -s /lib/`readlink $${i}` $(CURDIR)/debian/tmp/usr/lib/`basename $${i}`; \
+               rm $${i}; \
+       done
+
+override_dh_installinit:
+       @# Install the /etc/default/zfs options file.
+       dh_installinit --name=zfs
+
+       @# Install the /etc/init.d/zfs-mount script.
+ifeq ($(LSB_DISTRIBUTOR),Debian)
+       @# Debian runs local mounts at sysv sequences [10..12] [08..09].
+       dh_installinit --name=zfs-mount \
+         --no-restart-on-upgrade --no-start -- defaults 13 07
+else
+       dh_installinit --name=zfs-mount \
+         --no-restart-on-upgrade --no-start
+endif
+
+       @# Install the /etc/init.d/zfs-share script.
+ifeq ($(LSB_DISTRIBUTOR),Debian)
+       @# Debian runs nfs-kernel-server at sysv sequence 17 01,
+       @# iscsitarget at 02 01, and samba at 01 02.
+       dh_installinit --name=zfs-share \
+         --no-restart-on-upgrade --no-start -- defaults 18 00
+else ifeq ($(LSB_DISTRIBUTOR),Ubuntu)
+       @# Ubuntu runs nfs-kernel-server at sysv sequence 20 80,
+       @# iscsitarget at 20 20, and samba through upstart.
+       dh_installinit --name=zfs-share \
+         --no-restart-on-upgrade --no-start -- defaults 25 15
+else
+       dh_installinit --name=zfs-share \
+         --no-restart-on-upgrade --no-start
+endif
+
+override_dh_dkms:
+       dh_dkms -V $(VERSION)
+
+override_dh_makeshlibs:
+       dh_makeshlibs -a
+ifeq ($(BUILD_UDEB), true)
+       dh_makeshlibs -plibnvpair$(SHLIB_MAJOR) --add-udeb=libnvpair$(SHLIB_MAJOR)-udeb
+       dh_makeshlibs -plibuutil$(SHLIB_MAJOR) --add-udeb=libuutil$(SHLIB_MAJOR)-udeb
+       dh_makeshlibs -plibzfs$(SHLIB_MAJOR) --add-udeb=libzfs$(SHLIB_MAJOR)-udeb
+       dh_makeshlibs -plibzpool$(SHLIB_MAJOR) --add-udeb=libzpool$(SHLIB_MAJOR)-udeb
+       dh_makeshlibs -pzfsutils --add-udeb=zfsutils-udeb
+   endif
+
+override_dh_strip:
+       dh_strip --dbg-package=zfs-dbg
+ifeq ($(BUILD_UDEB), true)
+       dh_strip -plibnvpair$(SHLIB_MAJOR)-udeb
+       dh_strip -plibuutil$(SHLIB_MAJOR)-udeb
+       dh_strip -plibzfs$(SHLIB_MAJOR)-udeb
+       dh_strip -plibzpool$(SHLIB_MAJOR)-udeb
+       dh_strip -pzfsutils-udeb
+endif
+
+override_dh_auto_clean:
+       dh_auto_clean
+       @if test -e META.orig; then mv META.orig META; fi
+       cp debian/control.in debian/control
+ifeq ($(BUILD_UDEB), true)
+       cat debian/control.udeb.in >> debian/control
+endif
+
+override_dh_install:
+       find . -name lib*.la -delete
+       dh_install --list-missing
+
+# ------------
+
+override_dh_prep-deb-files:
+       for templ in $(wildcard $(CURDIR)/debian/*_KVERS_*.in); do \
+               sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/' \
+               < $$templ > `echo $$templ | sed -e 's/_KVERS_/$(KVERS)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g ; s/\.in$$//'` ; \
+       done
+       sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g' \
+       < debian/control.modules.in > debian/control
+
+override_dh_configure_modules_udeb: override_dh_configure_modules_udeb_stamp
+override_dh_configure_modules_udeb_stamp:
+       ./configure \
+               --without-selinux \
+               --with-config=kernel \
+               --with-linux=$(KSRC) \
+               --with-linux-obj=$(KOBJ) \
+               --with-spl=$(SPL)
+       touch override_dh_configure_modules_udeb_stamp
+
+override_dh_configure_modules: override_dh_configure_modules_stamp
+override_dh_configure_modules_stamp:
+       ./configure \
+               --with-config=kernel \
+               --with-linux=$(KSRC) \
+               --with-linux-obj=$(KOBJ) \
+               --with-spl=$(SPL)
+       touch override_dh_configure_modules_stamp
+
+override_dh_binary-modules-udeb: override_dh_prep-deb-files override_dh_configure_modules_udeb
+       dh_testdir
+       dh_testroot
+       dh_prep
+
+       $(MAKE) -C $(CURDIR)/module modules
+
+       dh_installdirs -p${pmodules}-di
+       dh_install -p${pmodules}-di
+       dh_gencontrol -p${pmodules}-di
+
+       dh_builddeb -p${pmodules}-di
+
+override_dh_binary-modules: override_dh_prep-deb-files override_dh_configure_modules
+       dh_testdir
+       dh_testroot
+       dh_prep
+
+       $(MAKE) -C $(CURDIR)/module modules
+
+       dh_install -p${pmodules}
+       dh_installdocs -p${pmodules}
+       dh_installchangelogs -p${pmodules}
+       dh_compress -p${pmodules}
+       dh_strip -p${pmodules}
+       dh_fixperms -p${pmodules}
+       dh_installdeb -p${pmodules}
+       dh_gencontrol -p${pmodules}
+       dh_md5sums -p${pmodules}
+       dh_builddeb -p${pmodules}
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tree/zfs-initramfs/usr/share/initramfs-tools/conf-hooks.d/zfs b/debian/tree/zfs-initramfs/usr/share/initramfs-tools/conf-hooks.d/zfs
new file mode 100644 (file)
index 0000000..29950ca
--- /dev/null
@@ -0,0 +1,2 @@
+# Force the inclusion of Busybox in the initramfs.
+BUSYBOX=y
diff --git a/debian/tree/zfs-initramfs/usr/share/initramfs-tools/hooks/zfs b/debian/tree/zfs-initramfs/usr/share/initramfs-tools/hooks/zfs
new file mode 100755 (executable)
index 0000000..b8bb41e
--- /dev/null
@@ -0,0 +1,80 @@
+#!/bin/sh
+#
+# Add ZoL filesystem capabilities to an initrd, usually for a native ZFS root.
+#
+
+# This hook installs udev rules for ZoL.
+PREREQ="zdev"
+
+# These prerequisites are provided by the zfsutils package. The zdb utility is
+# not strictly required, but it can be useful at the initramfs recovery prompt.
+COPY_EXEC_LIST="/sbin/zdb /sbin/zpool /sbin/zfs /sbin/mount.zfs"
+
+# These prerequisites are provided by the base system.
+COPY_EXEC_LIST="$COPY_EXEC_LIST /bin/hostname /sbin/blkid"
+
+# Explicitly specify all kernel modules because automatic dependency resolution
+# is unreliable on many systems.
+BASE_MODULES="zlib_deflate spl zavl zcommon znvpair zunicode zfs"
+CRPT_MODULES="sun-ccm sun-gcm sun-ctr"
+MANUAL_ADD_MODULES_LIST="$BASE_MODULES"
+
+# Generic result code.
+RC=0
+
+case $1 in
+prereqs)
+       echo "$PREREQ"
+       exit 0
+       ;;
+esac
+
+for ii in $COPY_EXEC_LIST
+do
+       if [ ! -x "$ii" ]
+       then
+               echo "Error: $ii is not executable."
+               RC=2
+       fi
+done
+
+if [ "$RC" -ne 0 ]
+then
+       exit "$RC"
+fi
+
+. /usr/share/initramfs-tools/hook-functions
+
+mkdir -p "$DESTDIR/etc/"
+
+# ZDB uses pthreads for some functions, but the library dependency is not
+# automatically detected. The `find` utility and extended `cp` options are
+# used here because libgcc_s.so could be in a subdirectory of /lib for
+# multi-arch installations.
+cp --target-directory="$DESTDIR" --parents $(find /lib -type f -name libgcc_s.so.1)
+
+for ii in $COPY_EXEC_LIST
+do
+       copy_exec "$ii"
+done
+
+for ii in $MANUAL_ADD_MODULES_LIST
+do
+       manual_add_modules "$ii"
+done
+
+if [ -f "/etc/hostname" ]
+then
+       cp -p "/etc/hostname" "$DESTDIR/etc/"
+else
+       hostname >"$DESTDIR/etc/hostname"
+fi
+
+# The spl-dkms package ensures that the /etc/hostid file exists.
+# NB: Commentary in the spl-dkms.postinst script.
+[ -f "/etc/hostid" ] && cp -p "/etc/hostid" "$DESTDIR/etc/hostid"
+
+# Install the zpool.cache file.
+[ ! -d "$DESTDIR/boot/zfs" ] && mkdir -p "$DESTDIR/boot/zfs"
+[ -d /boot/zfs ] && cp -r /boot/zfs "$DESTDIR/boot"
+exit 0
diff --git a/debian/tree/zfs-initramfs/usr/share/initramfs-tools/scripts/zfs b/debian/tree/zfs-initramfs/usr/share/initramfs-tools/scripts/zfs
new file mode 100644 (file)
index 0000000..de3bad6
--- /dev/null
@@ -0,0 +1,236 @@
+# ZFS boot stub for initramfs-tools.
+#
+# In the initramfs environment, the /init script sources this stub to
+# override the default functions in the /scripts/local script.
+#
+# Enable this by passing boot=zfs on the kernel command line.
+#
+
+
+pre_mountroot()
+{
+       [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-top"
+       run_scripts /scripts/local-top
+       [ "$quiet" != "y" ] && log_end_msg
+
+       if [ -r '/etc/default/zfs' ]
+       then
+               . '/etc/default/zfs'
+               if [ "$ZFS_INITRD_PRE_MOUNTROOT_SLEEP" -gt '0' ]
+               then
+                       [ "$quiet" != "y" ] && log_begin_msg "Sleeping for $ZFS_INITRD_PRE_MOUNTROOT_SLEEP seconds..."
+                       sleep "$ZFS_INITRD_PRE_MOUNTROOT_SLEEP"
+                       [ "$quiet" != "y" ] && log_end_msg
+               fi
+       fi
+}
+
+# Duplicates the functionality found under try_failure_hooks in functions
+# but invoking that would be inappropriate here.
+disable_plymouth()
+{
+       if [ -x /bin/plymouth ] && /bin/plymouth --ping
+       then
+               /bin/plymouth hide-splash >/dev/null 2>&1
+       fi
+}
+
+mountroot()
+{
+       pre_mountroot
+
+       [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-premount"
+       run_scripts /scripts/local-premount
+       [ "$quiet" != "y" ] && log_end_msg
+
+       # Wait for all of the /dev/{hd,sd}[a-z] device nodes to appear.
+       wait_for_udev
+
+       # Load the module now to get consistent automatic pool import behavior.
+       modprobe zfs
+
+       # Check the kernel command line for overrides.
+       ZFS_RPOOL="${rpool#rpool=}"
+       ZFS_BOOTFS="${bootfs#bootfs=}"
+
+       if [ -z "$ZFS_RPOOL" ]
+       then
+               # Check for the `-B zfs-bootfs=%s/%u,...` kind of parameter.
+               #
+               # The ${zfs-bootfs} variable is set at the kernel commmand
+               # line, usually by GRUB, but it cannot be referenced here
+               # directly because bourne variable names cannot contain a
+               # hyphen.
+               #
+               # Reassign the variable by dumping the environment and
+               # stripping the zfs-bootfs= prefix.  Let the shell handle
+               # quoting through the eval command.
+               eval ZFS_RPOOL=$(set | sed -n -e 's,^zfs-bootfs=,,p')
+
+               # Only the pool name is relevant because the ZFS filesystem on
+               # Linux is extrinsic and the userland cannot resolve a ZFS
+               # object number.
+               #
+               # Strip everything after the first slash character.
+               ZFS_RPOOL=$(echo "$ZFS_RPOOL" | sed -e 's,/.*,,')
+       fi
+
+       # Use "rpool" as the default, like on most Solaris systems.
+       [ -z "$ZFS_RPOOL" ] && ZFS_RPOOL='rpool'
+
+       if [ -f /etc/zfs/zpool.cache ]; then
+               ZPOOL_CACHE=/etc/zfs/zpool.cache
+       elif [ -f /boot/zfs/zpool.cache ]; then
+               ZPOOL_CACHE=/boot/zfs/zpool.cache
+       fi
+
+       # zpool import refuse to import without a valid mtab
+       [ ! -f /proc/mounts ] && mount proc /proc
+       [ ! -f /etc/mtab ] && cat /proc/mounts > /etc/mtab
+
+       # Just make sure it's not already imported. Should be impossible, but...
+       zpool list "$ZFS_RPOOL" 1>/dev/null 2>&1
+       ZFS_ERROR=$?
+
+       [ "$quiet" != "y" ] && log_begin_msg "Importing ZFS root pool $ZFS_RPOOL"
+       # Attempt 1: Try the correct/proper way.
+       if [ "$ZFS_ERROR" -ne 0 -a -n "$ZPOOL_CACHE" ]
+       then
+               ZFS_CMD="zpool import -c $ZPOOL_CACHE -N $ZFS_RPOOL"
+
+               ZFS_STDERR=$($ZFS_CMD 2>&1)
+               ZFS_ERROR=$?
+
+               [ "$ZFS_ERROR" -ne 0 ] && echo "FAIL: $ZFS_CMD. Retrying..."
+       fi
+
+       # Attempt 2: Try forcing the import, using /dev/disk/by-id if it exists.
+       [ -d /dev/disk/by-id ] && DISK_BY_ID="-d /dev/disk/by-id"
+       if [ "$ZFS_ERROR" -ne 0 -o -z "$ZPOOL_CACHE" ]
+       then
+               ZFS_CMD="zpool import -f -N $DISK_BY_ID $ZFS_RPOOL"
+
+               ZFS_STDERR=$($ZFS_CMD 2>&1)
+               ZFS_ERROR=$?
+
+               [ "$ZFS_ERROR" -ne 0 ] && echo "FAIL: $ZFS_CMD. Retrying..."
+       fi
+
+       # Attempt 3: Last ditch attempt. If DISK_BY_ID is set, we've already tried...
+       if [ "$ZFS_ERROR" -ne 0 -a -z "$DISK_BY_ID" ]
+       then
+               ZFS_CMD="zpool import -f -N $ZFS_RPOOL"
+
+               ZFS_STDERR=$($ZFS_CMD 2>&1)
+               ZFS_ERROR=$?
+
+               [ "$ZFS_ERROR" -ne 0 ] && echo "FAIL: $ZFS_CMD. Retrying..."
+       fi
+       [ "$quiet" != "y" ] && log_end_msg
+
+       if [ "$ZFS_ERROR" -ne 0 ]
+       then
+               disable_plymouth
+               echo "Command: $ZFS_CMD"
+               echo "Message: $ZFS_STDERR"
+               echo "Error: $ZFS_ERROR"
+               echo ""
+               echo "Manually import the root pool at the command prompt and then exit."
+               echo "Hint: Try:  zpool import -f -R / -N $ZFS_RPOOL"
+               /bin/sh
+       fi
+
+       if [ -z "$ZFS_BOOTFS" ]
+       then
+               [ "$quiet" != "y" ] && log_begin_msg "Getting ZFS bootfs property"
+               ZFS_BOOTFS=$(zpool list -H -o bootfs "$ZFS_RPOOL")
+               ZFS_ERROR=$?
+               [ "$quiet" != "y" ] && log_end_msg
+       fi
+
+       if [ -z "$ZFS_BOOTFS" ]
+       then
+               disable_plymouth
+               echo "Command: zpool list -H -o bootfs $ZFS_RPOOL"
+               echo "Error: $ZFS_ERROR, unable to get the bootfs property."
+               echo ""
+               echo "Manually mount the root filesystem on $rootmnt and then exit."
+               echo "Hint: Try:  mount -t zfs -o zfsutil $ZFS_RPOOL/ROOT/system $rootmnt"
+               /bin/sh 
+       fi
+
+       # Force the mountpoint to the only correct value for a root filesystem.
+       [ "$quiet" != "y" ] && log_begin_msg "Setting mountpoint=/ on ZFS filesystem $ZFS_BOOTFS"
+       ZFS_STDERR=$(zfs set mountpoint=/ "$ZFS_BOOTFS" 2>&1)
+       [ "$quiet" != "y" ] && log_end_msg
+
+       if zfs 2>&1 | grep -q 'key -l '
+       then
+               # 'zfs key' is availible (hence we have crypto), check if filesystem is encrypted.
+               set -- `zfs get encryption $ZFS_BOOTFS | grep ^$ZFS_RPOOL`
+               crypt_type=$3
+               if [ "$crypt_type" != "off" ]
+               then
+                       [ "$quiet" != "y" ] && log_begin_msg "Loading crypto wrapper key for $ZFS_BOOTFS"
+
+                       # Just make sure that ALL crypto modules module is loaded.
+                       # Simplest just to load all...
+                       for mod in sun-ccm sun-gcm sun-ctr
+                       do
+                               modprobe $mod
+                       done
+
+                       # If the key isn't availible, then this will fail!
+                       ZFS_CMD="zfs key -l -a"
+                       ZFS_STDERR=$($ZFS_CMD 2>&1)
+                       ZFS_ERROR=$?
+
+                       if [ "$ZFS_ERROR" -ne 0 ]
+                       then
+                           disable_plymouth
+                           echo "FAIL: $ZFS_CMD"
+                           echo "Message: $ZFS_STDERR"
+                           echo "Error: $ZFS_ERROR"
+                           echo ""
+                           echo "Failed to load zfs encryption wrapper key (s)."
+                           echo "Please verify dataset property 'keysource' for datasets"
+                           echo "and rerun: $ZFS_CMD"
+                           /bin/sh
+
+                           ZFS_ERROR=0
+                       else
+                           [ "$quiet" != "y" ] && log_end_msg
+                       fi
+               fi
+       fi
+
+       # Ideally, the root filesystem would be mounted like this:
+       #
+       #   zpool import -R "$rootmnt" -N "$ZFS_RPOOL"
+       #   zfs mount -o mountpoint=/ "$ZFS_BOOTFS"
+       #
+       # but the MOUNTPOINT prefix is preserved on descendent filesystem after
+       # the pivot into the regular root, which later breaks things like
+       # `zfs mount -a` and the /etc/mtab refresh.
+
+       [ "$quiet" != "y" ] && log_begin_msg "Mounting ZFS filesystem $ZFS_BOOTFS"
+       ZFS_STDERR=$(mount -t zfs -o zfsutil "$ZFS_BOOTFS" "$rootmnt" 2>&1)
+       ZFS_ERROR=$?
+       [ "$quiet" != "y" ] && log_end_msg
+
+       if [ "$ZFS_ERROR" -ne 0 ]
+       then
+               disable_plymouth
+               echo ""
+               echo "Command: mount -t zfs -o zfsutil $ZFS_BOOTFS $rootmnt"
+               echo "Message: $ZFS_STDERR"
+               echo "Error: $ZFS_ERROR"
+               echo ""
+               echo "Manually mount the root filesystem on $rootmnt and then exit."
+               /bin/sh 
+       fi
+
+       [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-bottom"
+       run_scripts /scripts/local-bottom
+       [ "$quiet" != "y" ] && log_end_msg
+}
diff --git a/debian/tree/zfsutils/etc/bash_completion.d/zfs b/debian/tree/zfsutils/etc/bash_completion.d/zfs
new file mode 100644 (file)
index 0000000..1b9428b
--- /dev/null
@@ -0,0 +1,232 @@
+# Copyright (c) 2010, Aneurin Price <aneurin.price@gmail.com>
+
+# 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.
+
+__zfs_get_commands()
+{
+    zfs 2>&1 | awk '/^\t[a-z]/ {print $1}' | uniq
+}
+
+__zfs_get_properties()
+{
+    zfs get 2>&1 | awk '$2 == "YES" || $2 == "NO" {print $1}'; echo all
+}
+
+__zfs_get_editable_properties()
+{
+    zfs get 2>&1 | awk '$2 == "YES" {printf("%s=\n", $1)}'
+}
+
+__zfs_get_inheritable_properties()
+{
+    zfs get 2>&1 | awk '$3 == "YES" {print $1}'
+}
+
+__zfs_list_datasets()
+{
+    zfs list -H -o name
+}
+
+__zfs_list_filesystems()
+{
+    zfs list -H -o name -t filesystem
+}
+
+__zfs_list_snapshots()
+{
+    zfs list -H -o name -t snapshot
+}
+
+__zfs_list_volumes()
+{
+    zfs list -H -o name -t volume
+}
+
+__zfs_argument_chosen()
+{
+    for word in $(seq $((COMP_CWORD-1)) -1 2)
+    do
+        local prev="${COMP_WORDS[$word]}"
+        for property in $@
+        do
+            if [ "x$prev" = "x$property" ]
+            then
+                return 0
+            fi
+        done
+    done
+    return 1
+}
+
+__zfs_complete_ordered_arguments()
+{
+    local list1=$1
+    local list2=$2
+    local cur=$3
+    local extra=$4
+    if __zfs_argument_chosen $list1
+    then
+        COMPREPLY=($(compgen -W "$list2 $extra" -- "$cur"))
+    else
+        COMPREPLY=($(compgen -W "$list1 $extra" -- "$cur"))
+    fi
+}
+
+__zfs_complete()
+{
+    local cur prev cmd cmds
+    COMPREPLY=()
+    cur="${COMP_WORDS[COMP_CWORD]}"
+    prev="${COMP_WORDS[COMP_CWORD-1]}"
+    cmd="${COMP_WORDS[1]}"
+    cmds=$(__zfs_get_commands)
+
+    if [ "${prev##*/}" = "zfs" ]
+    then
+        COMPREPLY=($(compgen -W "$cmds -?" -- "$cur"))
+        return 0
+    fi
+
+    case "${cmd}" in
+        clone)
+            __zfs_complete_ordered_arguments "$(__zfs_list_snapshots)" "$(__zfs_list_filesystems) $(__zfs_list_volumes)" $cur
+            return 0
+            ;;
+        get)
+            __zfs_complete_ordered_arguments "$(__zfs_get_properties)" "$(__zfs_list_datasets)" "$cur" "-H -r -p"
+            return 0
+            ;;
+        inherit)
+            __zfs_complete_ordered_arguments "$(__zfs_get_inheritable_properties)" "$(__zfs_list_datasets)" $cur
+            return 0
+            ;;
+        list)
+            if [ "x$prev" = "x-o" ]
+            then
+                COMPREPLY=($(compgen -W "$(__zfs_get_properties)" -- "${cur##*,}"))
+                local existing_opts=$(expr "$cur" : '\(.*,\)')
+                if [ ! "x$existing_opts" = "x" ]
+                then
+                    COMPREPLY=( "${COMPREPLY[@]/#/${existing_opts}}" )
+                fi
+            else
+                COMPREPLY=($(compgen -W "$(__zfs_list_datasets) -H -r -o" -- "$cur"))
+            fi
+            return 0
+            ;;
+        promote)
+            COMPREPLY=($(compgen -W "$(__zfs_list_filesystems)" -- "$cur"))
+            return 0
+            ;;
+        rollback|send)
+            COMPREPLY=($(compgen -W "$(__zfs_list_snapshots)" -- "$cur"))
+            return 0
+            ;;
+        snapshot)
+            COMPREPLY=($(compgen -W "$(__zfs_list_filesystems) $(__zfs_list_volumes)" -- "$cur"))
+            return 0
+            ;;
+        set)
+            __zfs_complete_ordered_arguments "$(__zfs_get_editable_properties)" "$(__zfs_list_filesystems) $(__zfs_list_volumes)" $cur
+            return 0
+            ;;
+        *)
+            COMPREPLY=($(compgen -W "$(__zfs_list_datasets)" -- "$cur"))
+            return 0
+            ;;
+    esac
+
+}
+
+__zpool_get_commands()
+{
+    zpool 2>&1 | awk '/^\t[a-z]/ {print $1}' | uniq
+}
+
+__zpool_get_properties()
+{
+    zpool get 2>&1 | awk '$2 == "YES" || $2 == "NO" {print $1}'; echo all
+}
+
+__zpool_get_editable_properties()
+{
+    zpool get 2>&1 | awk '$2 == "YES" {printf("%s=\n", $1)}'
+}
+
+__zpool_list_pools()
+{
+    zpool list -H -o name
+}
+
+__zpool_complete()
+{
+    local cur prev cmd cmds
+    COMPREPLY=()
+    cur="${COMP_WORDS[COMP_CWORD]}"
+    prev="${COMP_WORDS[COMP_CWORD-1]}"
+    cmd="${COMP_WORDS[1]}"
+    cmds=$(__zpool_get_commands)
+
+    if [ "${prev##*/}" = "zpool" ]
+    then
+        COMPREPLY=($(compgen -W "$cmds" -- "$cur"))
+        return 0
+    fi
+
+    case "${cmd}" in
+        get)
+            __zfs_complete_ordered_arguments "$(__zpool_get_properties)" "$(__zpool_list_pools)" $cur
+            return 0
+            ;;
+        import)
+            if [ "x$prev" = "x-d" ]
+            then
+                _filedir -d
+            else
+                COMPREPLY=($(compgen -W "$(__zpool_list_pools) -d" -- "$cur"))
+            fi
+            return 0
+            ;;
+        set)
+            __zfs_complete_ordered_arguments "$(__zpool_get_editable_properties)" "$(__zpool_list_pools)" $cur
+            return 0
+            ;;
+        add|attach|clear|create|detach|offline|online|remove|replace)
+            local pools="$(__zpool_list_pools)"
+            if __zfs_argument_chosen $pools
+            then
+                _filedir
+            else
+                COMPREPLY=($(compgen -W "$pools" -- "$cur"))
+            fi
+            return 0
+            ;;
+        *)
+            COMPREPLY=($(compgen -W "$(__zpool_list_pools)" -- "$cur"))
+            return 0
+            ;;
+    esac
+
+}
+
+complete -F __zfs_complete zfs
+complete -o filenames -F __zpool_complete zpool
diff --git a/debian/tree/zfsutils/usr/lib/os-probes/10zvol-test b/debian/tree/zfsutils/usr/lib/os-probes/10zvol-test
new file mode 100755 (executable)
index 0000000..cdbe7a5
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Sub-test to exclude ZVOLs
+set -e
+partition="$1"
+
+. /usr/share/os-prober/common.sh
+
+if [ "$(stat -L -c %t "$partition")" = "e6" ] ; then
+       debug "$1 is a ZVOL; skipping"
+       exit 0
+fi
+
+# No ZVOLs found
+exit 1
diff --git a/debian/tree/zfsutils/usr/share/initramfs-tools/hooks/zdev b/debian/tree/zfsutils/usr/share/initramfs-tools/hooks/zdev
new file mode 100755 (executable)
index 0000000..0cf21a4
--- /dev/null
@@ -0,0 +1,67 @@
+#!/bin/sh
+#
+# Add udev rules for ZoL to the initrd.
+#
+
+PREREQ="udev"
+PREREQ_UDEV_RULES="60-zvol.rules 69-vdev.rules"
+COPY_EXEC_LIST="/lib/udev/zvol_id /lib/udev/vdev_id"
+
+# Generic result code.
+RC=0
+
+case $1 in
+prereqs)
+       echo "$PREREQ"
+       exit 0
+       ;;
+esac
+
+for ii in $COPY_EXEC_LIST
+do
+       if [ ! -x "$ii" ]
+       then
+               echo "Error: $ii is not executable."
+               RC=2
+       fi
+done
+
+if [ "$RC" -ne 0 ]
+then
+       exit "$RC"
+fi
+
+. /usr/share/initramfs-tools/hook-functions
+
+mkdir -p "$DESTDIR/lib/udev/rules.d/"
+for ii in $PREREQ_UDEV_RULES
+do
+       if [ -e "/etc/udev/rules.d/$ii" ]
+       then
+               cp -p "/etc/udev/rules.d/$ii" "$DESTDIR/lib/udev/rules.d/"
+       elif [ -e "/lib/udev/rules.d/$ii" ]
+       then
+               cp -p "/lib/udev/rules.d/$ii" "$DESTDIR/lib/udev/rules.d/"
+       else
+               echo "Error: Missing udev rule: $ii"
+               echo "       This file must be in the /etc/udev/rules.d or /lib/udev/rules.d directory."
+               exit 1
+       fi
+done
+
+for ii in $COPY_EXEC_LIST
+do
+       copy_exec "$ii"
+done
+
+if [ -f '/etc/default/zfs' -a -r '/etc/default/zfs' ]
+then
+       mkdir -p "$DESTDIR/etc/default"
+       cp -a '/etc/default/zfs' "$DESTDIR/etc/default/"
+fi
+
+if [ -d '/etc/zfs' -a -r '/etc/zfs' ]
+then
+       mkdir -p "$DESTDIR/etc"
+       cp -a '/etc/zfs' "$DESTDIR/etc/"
+fi
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..4e56cbd
--- /dev/null
@@ -0,0 +1,2 @@
+version=3
+http://zfsonlinux.org/ .*zfs-([\d\.]+)\.tar\.gz$
diff --git a/debian/zfs-dkms.config b/debian/zfs-dkms.config
new file mode 100644 (file)
index 0000000..0ad7704
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+kernelbits=unknown
+if [ -r /proc/kallsyms ]; then
+       addrlen=$(head -1 /proc/kallsyms|awk '{print $1}'|wc -c)
+       if [ $addrlen = 17 ]; then
+               kernelbits=64
+       elif [ $addrlen = 9 ]; then
+               kernelbits=32
+       fi
+fi
+
+if [ $kernelbits != 64 ]; then
+       if [ $kernelbits = 32 ]; then
+               db_input critical zfs-dkms/stop-build-for-32bit-kernel || true
+               db_go || true
+       else
+               db_input critical zfs-dkms/stop-build-for-unknown-kernel || true
+               db_go || true
+       fi
+fi
+
+#DEBHELPER#
\ No newline at end of file
diff --git a/debian/zfs-dkms.dkms b/debian/zfs-dkms.dkms
new file mode 100644 (file)
index 0000000..8941608
--- /dev/null
@@ -0,0 +1,89 @@
+BUILD_DEPENDS[0]="spl"
+AUTOINSTALL="yes"
+PACKAGE_NAME="zfs"
+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
+          # A kpkg exception for Proxmox 2.0
+          echo ${kernel_source_dir}
+        fi
+      ;;
+      (*)
+        echo ${kernel_source_dir}
+      ;;
+    esac
+  )
+  --with-linux-obj=${kernel_source_dir}
+  --with-spl=${source_tree}/spl-${PACKAGE_VERSION}
+  --with-spl-obj=${dkms_tree}/spl/${PACKAGE_VERSION}/${kernelver}/${arch}
+  $(
+    [[ -r /etc/default/zfs ]] \
+    && source /etc/default/zfs \
+    && shopt -q -s extglob \
+    && \
+    {
+      if [[ ${ZFS_DKMS_ENABLE_DEBUG,,} == @(y|yes) ]]
+      then
+        echo --enable-debug
+      fi
+      if [[ ${ZFS_DKMS_ENABLE_DEBUG_DMU_TX,,} == @(y|yes) ]]
+      then
+        echo --enable-debug-dmu-tx
+      fi
+    }
+  )
+  --with-spl-timeout=600
+"
+POST_BUILD="cp
+  ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/zfs_config.h
+  ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/module/Module.symvers
+  ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/${kernelver}/${arch}/
+"
+REMAKE_INITRD="$(
+  if [ -e /usr/share/initramfs-tools/hooks/zfs \
+       -o -e /usr/share/dracut/modules.d/90zfs ]
+  then
+    echo -n yes
+  else
+    echo -n no
+  fi
+)"
+MAKE[0]="make"
+STRIP[0]="$(
+  [[ -r /etc/default/zfs ]] \
+  && source /etc/default/zfs \
+  && shopt -q -s extglob \
+  && [[ ${ZFS_DKMS_DISABLE_STRIP,,} == @(y|yes) ]] \
+  && echo -n no
+)"
+STRIP[1]="${STRIP[0]}"
+STRIP[2]="${STRIP[0]}"
+STRIP[3]="${STRIP[0]}"
+STRIP[4]="${STRIP[0]}"
+STRIP[5]="${STRIP[0]}"
+BUILT_MODULE_NAME[0]="zavl"
+BUILT_MODULE_LOCATION[0]="module/avl/"
+DEST_MODULE_LOCATION[0]="/extra/zfs/zavl"
+BUILT_MODULE_NAME[1]="zcommon"
+BUILT_MODULE_LOCATION[1]="module/zcommon/"
+DEST_MODULE_LOCATION[1]="/extra/zfs/zcommon"
+BUILT_MODULE_NAME[2]="znvpair"
+BUILT_MODULE_LOCATION[2]="module/nvpair/"
+DEST_MODULE_LOCATION[2]="/extra/zfs/znvpair"
+BUILT_MODULE_NAME[3]="zpios"
+BUILT_MODULE_LOCATION[3]="module/zpios/"
+DEST_MODULE_LOCATION[3]="/extra/zfs/zpios"
+BUILT_MODULE_NAME[4]="zunicode"
+BUILT_MODULE_LOCATION[4]="module/unicode/"
+DEST_MODULE_LOCATION[4]="/extra/zfs/zunicode"
+BUILT_MODULE_NAME[5]="zfs"
+BUILT_MODULE_LOCATION[5]="module/zfs/"
+DEST_MODULE_LOCATION[5]="/extra/zfs/zfs"
diff --git a/debian/zfs-dkms.docs b/debian/zfs-dkms.docs
new file mode 100644 (file)
index 0000000..425a0e5
--- /dev/null
@@ -0,0 +1,2 @@
+COPYRIGHT
+OPENSOLARIS.LICENSE
diff --git a/debian/zfs-dkms.install b/debian/zfs-dkms.install
new file mode 100644 (file)
index 0000000..b601f22
--- /dev/null
@@ -0,0 +1 @@
+usr/src
diff --git a/debian/zfs-dkms.postinst b/debian/zfs-dkms.postinst
new file mode 100644 (file)
index 0000000..cb87e1c
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+set -e
+
+# Source debconf library (see dh_installdebconf(1) and #106070 #626312)
+. /usr/share/debconf/confmodule
+
+kernelbits=unknown
+if [ -r /proc/kallsyms ]; then
+       addrlen=$(head -1 /proc/kallsyms|awk '{print $1}'|wc -c)
+       if [ $addrlen = 17 ]; then
+               kernelbits=64
+       elif [ $addrlen = 9 ]; then
+               kernelbits=32
+       fi
+fi
+
+if [ $kernelbits != 64 ]; then
+       if [ $kernelbits = 32 ]; then
+               db_get zfs-dkms/stop-build-for-32bit-kernel
+               if [ "$RET" = "true" ]; then
+                       echo "Ok, aborting, since ZFS is not designed for 32-bit kernels." 1>&2
+                       # Exit 0: Tell dpkg that we finished OK but stop here.
+                       # (don't build the module)
+                       exit 0
+               else
+                       echo "WARNING: Building ZFS module on a 32-bit kernel." 1>&2
+               fi
+       else
+               db_get zfs-dkms/stop-build-for-unknown-kernel
+               if [ "$RET" = "true" ]; then
+                       echo "Ok, aborting, since ZFS is not designed for 32-bit kernels." 1>&2
+                       # Exit 0: (same that above)
+                       exit 0
+               else
+                       echo "WARNING: Building ZFS module on an unknown kernel." 1>&2
+               fi
+       fi
+fi
+
+# Here the module gets built (automatically handled by dh_dkms)
+
+#DEBHELPER#
+
+
+case $1 in
+       (configure)
+               if [ -x /usr/share/update-notifier/notify-reboot-required ]; then
+                       /usr/share/update-notifier/notify-reboot-required
+               fi
+               ;;
+esac
diff --git a/debian/zfs-dkms.prerm b/debian/zfs-dkms.prerm
new file mode 100644 (file)
index 0000000..fea2aee
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "remove" ]; then
+        rm -f /etc/zfs/zpool.cache
+fi
diff --git a/debian/zfs-dkms.templates b/debian/zfs-dkms.templates
new file mode 100644 (file)
index 0000000..0527c83
--- /dev/null
@@ -0,0 +1,25 @@
+Template: zfs-dkms/stop-build-for-32bit-kernel
+Type: boolean
+Default: true
+_Description: Abort building ZFS on a 32-bit kernel?
+ You are attempting to build ZFS against a 32-bit running kernel.
+ .
+ Although possible, building in a 32-bit environment is unsupported and
+ likely to cause instability leading to possible data corruption. You
+ are strongly advised to use a 64-bit kernel; if you do decide to
+ proceed with using ZFS on this kernel then keep in mind that it is at
+ your own risk.
+
+Template: zfs-dkms/stop-build-for-unknown-kernel
+Type: boolean
+Default: true
+_Description: Abort building ZFS on an unknown kernel?
+ You are attempting to build ZFS against a running kernel that could not
+ be identified as 32-bit or 64-bit. If you are not completely sure that
+ the running kernel is a 64-bit one, you should probably stop the build.
+ .
+ Although possible, building in a 32-bit environment is unsupported and
+ likely to cause instability leading to possible data corruption. You
+ are strongly advised to use a 64-bit kernel; if you do decide to
+ proceed with using ZFS on this kernel then keep in mind that it is at
+ your own risk.
diff --git a/debian/zfs-dracut.install b/debian/zfs-dracut.install
new file mode 100644 (file)
index 0000000..74de57c
--- /dev/null
@@ -0,0 +1 @@
+usr/share/dracut
diff --git a/debian/zfs-initramfs.install b/debian/zfs-initramfs.install
new file mode 100644 (file)
index 0000000..b853d8e
--- /dev/null
@@ -0,0 +1 @@
+../tree/zfs-initramfs/* /
diff --git a/debian/zfs-initramfs.triggers b/debian/zfs-initramfs.triggers
new file mode 100644 (file)
index 0000000..6c9f454
--- /dev/null
@@ -0,0 +1 @@
+activate update-initramfs
diff --git a/debian/zfs-modules-_KVERS_-di.install.in b/debian/zfs-modules-_KVERS_-di.install.in
new file mode 100644 (file)
index 0000000..a0284a5
--- /dev/null
@@ -0,0 +1,6 @@
+module/zcommon/zcommon.ko      lib/modules/_KVERS_/extra/zcommon/
+module/zfs/zfs.ko              lib/modules/_KVERS_/extra/zfs/
+module/avl/zavl.ko             lib/modules/_KVERS_/extra/avl/
+module/unicode/zunicode.ko     lib/modules/_KVERS_/extra/unicode/
+module/zpios/zpios.ko          lib/modules/_KVERS_/extra/zpios/
+module/nvpair/znvpair.ko       lib/modules/_KVERS_/extra/nvpari/
diff --git a/debian/zfs-modules-_KVERS_.install.in b/debian/zfs-modules-_KVERS_.install.in
new file mode 100644 (file)
index 0000000..a0284a5
--- /dev/null
@@ -0,0 +1,6 @@
+module/zcommon/zcommon.ko      lib/modules/_KVERS_/extra/zcommon/
+module/zfs/zfs.ko              lib/modules/_KVERS_/extra/zfs/
+module/avl/zavl.ko             lib/modules/_KVERS_/extra/avl/
+module/unicode/zunicode.ko     lib/modules/_KVERS_/extra/unicode/
+module/zpios/zpios.ko          lib/modules/_KVERS_/extra/zpios/
+module/nvpair/znvpair.ko       lib/modules/_KVERS_/extra/nvpari/
diff --git a/debian/zfs-modules-_KVERS_.postinst.in b/debian/zfs-modules-_KVERS_.postinst.in
new file mode 100644 (file)
index 0000000..8ab2d19
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+# Run depmod first
+depmod
+
+#DEBHELPER#
+
+
+case $1 in
+       (configure)
+               if [ -x /usr/share/update-notifier/notify-reboot-required ]; then
+                       /usr/share/update-notifier/notify-reboot-required
+               fi
+               ;;
+esac
diff --git a/debian/zfs-modules-_KVERS_.postrm.in b/debian/zfs-modules-_KVERS_.postrm.in
new file mode 100644 (file)
index 0000000..2a2fc4b
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+# Run depmod after module uninstallation.
+depmod
+
+#DEBHELPER#
diff --git a/debian/zfsutils-linux-udeb.install b/debian/zfsutils-linux-udeb.install
new file mode 100644 (file)
index 0000000..9d7064b
--- /dev/null
@@ -0,0 +1,2 @@
+../tmp/lib/udev/*_id    /sbin
+../tmp/sbin/*  /sbin
diff --git a/debian/zfsutils-linux-udeb.isinstallable b/debian/zfsutils-linux-udeb.isinstallable
new file mode 100644 (file)
index 0000000..edad0f9
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# Require ZFS v28 in kernel
+exit 0
diff --git a/debian/zfsutils-linux.docs b/debian/zfsutils-linux.docs
new file mode 100644 (file)
index 0000000..425a0e5
--- /dev/null
@@ -0,0 +1,2 @@
+COPYRIGHT
+OPENSOLARIS.LICENSE
diff --git a/debian/zfsutils-linux.examples b/debian/zfsutils-linux.examples
new file mode 100644 (file)
index 0000000..e04d881
--- /dev/null
@@ -0,0 +1,57 @@
+etc/zfs/vdev_id.conf.alias.example
+etc/zfs/vdev_id.conf.multipath.example
+etc/zfs/vdev_id.conf.sas_direct.example
+etc/zfs/vdev_id.conf.sas_switch.example
+scripts/common.sh
+scripts/zconfig.sh
+scripts/zfault.sh
+scripts/zfs.sh
+scripts/zpios-profile/zpios-profile-disk.sh
+scripts/zpios-profile/zpios-profile-pids.sh
+scripts/zpios-profile/zpios-profile-post.sh
+scripts/zpios-profile/zpios-profile-pre.sh
+scripts/zpios-profile/zpios-profile.sh
+scripts/zpios-sanity.sh
+scripts/zpios-survey.sh
+scripts/zpios-test/16th-8192rc-4rs-1cs-4off.sh
+scripts/zpios-test/1th-16rc-4rs-1cs-4off.sh
+scripts/zpios-test/1x256th-65536rc-4rs-1cs-4off.sh
+scripts/zpios-test/256th-65536rc-4rs-1cs-4off.sh
+scripts/zpios-test/4th-1024rc-4rs-1cs-4off.sh
+scripts/zpios-test/large-thread-survey.sh
+scripts/zpios-test/large.sh
+scripts/zpios-test/lustre.sh
+scripts/zpios-test/medium.sh
+scripts/zpios-test/small.sh
+scripts/zpios-test/tiny.sh
+scripts/zpios.sh
+scripts/zpool-config/dm0-raid0.sh
+scripts/zpool-config/file-raid0.sh
+scripts/zpool-config/file-raid10.sh
+scripts/zpool-config/file-raidz.sh
+scripts/zpool-config/file-raidz2.sh
+scripts/zpool-config/hda-raid0.sh
+scripts/zpool-config/lo-faulty-raid0.sh
+scripts/zpool-config/lo-faulty-raid10.sh
+scripts/zpool-config/lo-faulty-raidz.sh
+scripts/zpool-config/lo-faulty-raidz2.sh
+scripts/zpool-config/lo-faulty-raidz3.sh
+scripts/zpool-config/lo-raid0.sh
+scripts/zpool-config/lo-raid10.sh
+scripts/zpool-config/lo-raidz.sh
+scripts/zpool-config/lo-raidz2.sh
+scripts/zpool-config/md0-raid10.sh
+scripts/zpool-config/md0-raid5.sh
+scripts/zpool-config/ram0-raid0.sh
+scripts/zpool-config/scsi_debug-noraid.sh
+scripts/zpool-config/scsi_debug-raid0.sh
+scripts/zpool-config/scsi_debug-raid10.sh
+scripts/zpool-config/scsi_debug-raidz.sh
+scripts/zpool-config/scsi_debug-raidz2.sh
+scripts/zpool-config/scsi_debug-raidz3.sh
+scripts/zpool-config/sda-raid0.sh
+scripts/zpool-config/zpool-raid0.sh
+scripts/zpool-config/zpool-raid10.sh
+scripts/zpool-config/zpool-raidz.sh
+scripts/zpool-create.sh
+debian/examples/zfsutils/*
diff --git a/debian/zfsutils-linux.install b/debian/zfsutils-linux.install
new file mode 100644 (file)
index 0000000..bb06e7a
--- /dev/null
@@ -0,0 +1,4 @@
+../tree/zfsutils/* /
+lib/udev
+sbin
+usr/share/man
diff --git a/debian/zfsutils-linux.postinst b/debian/zfsutils-linux.postinst
new file mode 100644 (file)
index 0000000..9ec0bb5
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null
+then
+       dpkg-maintscript-helper rm_conffile /etc/default/zfsload -- "$@"
+       dpkg-maintscript-helper rm_conffile /etc/init.d/zfs -- "$@"
+fi
+
+#DEBHELPER#
diff --git a/debian/zfsutils-linux.postrm b/debian/zfsutils-linux.postrm
new file mode 100644 (file)
index 0000000..9ec0bb5
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null
+then
+       dpkg-maintscript-helper rm_conffile /etc/default/zfsload -- "$@"
+       dpkg-maintscript-helper rm_conffile /etc/init.d/zfs -- "$@"
+fi
+
+#DEBHELPER#
diff --git a/debian/zfsutils-linux.preinst b/debian/zfsutils-linux.preinst
new file mode 100644 (file)
index 0000000..9ec0bb5
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null
+then
+       dpkg-maintscript-helper rm_conffile /etc/default/zfsload -- "$@"
+       dpkg-maintscript-helper rm_conffile /etc/init.d/zfs -- "$@"
+fi
+
+#DEBHELPER#
diff --git a/debian/zfsutils-linux.zfs-mount.init b/debian/zfsutils-linux.zfs-mount.init
new file mode 100644 (file)
index 0000000..40f7e50
--- /dev/null
@@ -0,0 +1,84 @@
+#!/bin/sh
+#
+### BEGIN INIT INFO
+# Provides: zvol zfs zfs-mount
+# Required-Start: $local_fs
+# Required-Stop: $local_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Mount ZFS filesystems
+# Description: Run the `zfs mount -a` or `zfs umount -a` command.
+#              This init script is deprecated and should be disabled in the
+#              /etc/default/zfs options file. Instead, use the zfs-mount
+#              package for Debian or the zfs-mountall package for Ubuntu
+### END INIT INFO
+
+PATH=/sbin:/bin
+
+. /lib/lsb/init-functions
+# Do not source /lib/init/*.sh as they are not public APIs after getting rid
+# of /lib/init/rw. However, this line may help when doing back port to older
+# releases.
+#
+#. /lib/init/vars.sh
+
+[ -f /etc/default/zfs ] && . /etc/default/zfs
+
+do_start()
+{
+       log_begin_msg "Mounting ZFS filesystems"
+       log_progress_msg "filesystems"
+       zfs mount -a
+       RET=$?
+
+       if [ $RET != 0 ] ; then
+               log_end_msg $RET
+               exit $RET
+       fi
+
+       log_end_msg 0
+}
+
+do_stop()
+{
+       log_begin_msg "Unmounting ZFS filesystems"
+       log_progress_msg "filesystems"
+       zfs unmount -a
+       RET=$?
+
+       # Ignore a non-zero `zfs` result so that a busy ZFS instance
+       # does not hang the system during shutdown.
+       if [ $RET != 0 ] ; then
+               log_end_msg $RET
+       fi
+
+       log_end_msg 0
+}
+
+case "$1" in
+       (start)
+               case "$ZFS_MOUNT" in
+                       ([Oo][Ff][Ff]|[Nn][Oo]|'')
+                               exit 0
+                               ;;
+               esac
+               do_start
+               ;;
+       (stop)
+               case "$ZFS_UNMOUNT" in
+                       ([Oo][Ff][Ff]|[Nn][Oo]|'')
+                               exit 0
+                               ;;
+               esac
+               do_stop
+               ;;
+       (force-reload|reload|restart|status)
+               # no-op
+               ;;
+
+       (*)
+               [ -n "$1" ] && echo "Error: Unknown command $1."
+               echo "Usage: $0 {start|stop}"
+               exit 3
+       ;;
+esac
diff --git a/debian/zfsutils-linux.zfs-share.init b/debian/zfsutils-linux.zfs-share.init
new file mode 100644 (file)
index 0000000..e7ba385
--- /dev/null
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides: shareiscsi sharenfs sharesmb zfs-share
+# Required-Start: $local_fs $network $remote_fs
+# Required-Stop: $local_fs $network $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Should-Start: iscsi iscsitarget istgt nfs-kernel-server samba
+# Should-Stop: iscsi iscsitarget istgt nfs-kernel-server samba
+# Short-Description: Network share ZFS datasets.
+# Description: Run the `zfs share -a` or `zfs unmount -a` commands
+#      for controlling iSCSI, NFS, or CIFS network shares.
+### END INIT INFO
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+. /lib/lsb/init-functions
+# Do not source /lib/init/*.sh as they are not public APIs after getting rid
+# of /lib/init/rw. However, this line may help when doing back port to older
+# releases.
+#
+#. /lib/init/vars.sh
+
+[ -f /etc/default/zfs ] && . /etc/default/zfs
+
+do_start()
+{
+       log_begin_msg "Sharing ZFS filesystems"
+       log_progress_msg "filesystems"
+       zfs share -a
+       RET=$?
+
+       if [ $RET != 0 ] ; then
+               log_end_msg $RET
+               exit $RET
+       fi
+
+       log_end_msg 0
+}
+
+do_stop()
+{
+       log_begin_msg "Unsharing ZFS filesystems"
+       log_progress_msg "filesystems"
+       zfs unshare -a
+       RET=$?
+
+       # Ignore a non-zero `zfs` result so that a busy ZFS instance
+       # does not hang the system during shutdown.
+       if [ $RET != 0 ] ; then
+               log_end_msg $RET
+       fi
+
+       log_end_msg 0
+}
+
+case "$1" in
+       (start)
+               case "$ZFS_SHARE" in
+                       ([Oo][Ff][Ff]|[Nn][Oo]|'')
+                               exit 0
+                               ;;
+               esac
+               do_start
+               ;;
+       (stop)
+               case "$ZFS_UNSHARE" in
+                       ([Oo][Ff][Ff]|[Nn][Oo]|'')
+                               exit 0
+                               ;;
+               esac
+               do_stop
+               ;;
+       (force-reload|reload|restart|status)
+               # no-op
+               ;;
+
+       (*)
+               [ -n "$1" ] && echo "Error: Unknown command $1."
+               echo "Usage: $0 {start|stop}"
+               exit 3
+       ;;
+esac
diff --git a/debian/zfsutils-linux.zfs.default b/debian/zfsutils-linux.zfs.default
new file mode 100644 (file)
index 0000000..fcfed82
--- /dev/null
@@ -0,0 +1,29 @@
+# ZoL userland configuration.
+
+# Run `zfs mount -a` during system start?
+# This should be 'no' if zfs-mountall or a systemd generator is available.
+ZFS_MOUNT='no'
+
+# Run `zfs unmount -a` during system stop?
+# This should be 'no' on most systems.
+ZFS_UNMOUNT='no'
+
+# Run `zfs share -a` during system start?
+# nb: The shareiscsi, sharenfs, and sharesmb dataset properties.
+ZFS_SHARE='no'
+
+# Run `zfs unshare -a` during system stop?
+ZFS_UNSHARE='no'
+
+# Build kernel modules with the --enable-debug switch?
+ZFS_DKMS_ENABLE_DEBUG='no'
+
+# Build kernel modules with the --enable-debug-dmu-tx switch?
+ZFS_DKMS_ENABLE_DEBUG_DMU_TX='no'
+
+# Keep debugging symbols in kernel modules?
+ZFS_DKMS_DISABLE_STRIP='no'
+
+# Wait for this many seconds in the initrd pre_mountroot?
+# This delays startup and should be '0' on most systems.
+ZFS_INITRD_PRE_MOUNTROOT_SLEEP='0'