Package Details: zfs-linux 0.7.11_4.18.14.arch1.1-2

Git Clone URL: https://aur.archlinux.org/zfs-linux.git (read-only)
Package Base: zfs-linux
Description: Kernel modules for the Zettabyte File System.
Upstream URL: http://zfsonlinux.org/
Licenses: CDDL
Groups: archzfs-linux
Conflicts: zfs-dkms, zfs-dkms-git, zfs-linux-git
Provides: zfs
Replaces: zfs-git
Submitter: demizer
Maintainer: minextu (archzfs-bot)
Last Packager: archzfs-bot
Votes: 195
Popularity: 1.884824
First Submitted: 2016-04-21 08:45
Last Updated: 2018-10-17 13:08

Dependencies (6)

Required by (10)

Sources (1)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

minextu commented on 2018-07-21 04:04

Hi everyone, as you might know: I'm the new Maintainer of archzfs (https://github.com/archzfs/archzfs/issues/262). As soon as I get access to the archzfs.com domain, I will update all packages. I've implemented an automated build system to help update packages faster in the future. The new gpg key for the repo is F75D9D76 ArchZFS Bot <buildbot@archzfs.com>. If you are using the archzfs repo, you will need to add this key to pacman's trusted key list.

pacman-key -r F75D9D76
pacman-key --lsign-key F75D9D76

Edit: Packages are now up to date on archzfs.com. The temporary domain is no longer needed

whitesnow commented on 2018-07-19 16:41

I'm not the person, to answer that. But what I read here: https://github.com/archzfs/archzfs/issues/260

sounds very positive. There is even a temporary domain set up now. Read yourself there.

sonix07 commented on 2018-07-19 14:02

I'm aware of the maintainer change, but will this package get an update in the near future or is the dkms version the way to go now?

jgerecke commented on 2018-06-02 17:55

May I suggest modifying the PKGBUILD and zfs.install script to make it both easier to update and easier to verify that new updates (e.g. through aurman) aren't malicious? The following patch puts the ZFS and kernel versions into variables that we reuse rather than hardcoding strings in a half-dozen places. It also has the install script determine the kernel version automagically from the version string passed in by pacman. Similar modifications could/should be made to other packages (e.g. spl).

diff --git a/PKGBUILD b/PKGBUILD
index 6f1a8a3..5369240 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,24 +17,26 @@
 pkgbase="zfs-linux"
 pkgname=("zfs-linux" "zfs-linux-headers")

-pkgver=0.7.9.4.16.11.1
+zfsver=0.7.9
+kernelver=4.16.11-1
+pkgver="${zfsver}.$(echo ${kernelver} | tr '-' '.')"
 pkgrel=1
-makedepends=("linux-headers=4.16.11-1" "spl-linux-headers")
+makedepends=("linux-headers=${kernelver}" "spl-linux-headers")
 arch=("x86_64")
 url="http://zfsonlinux.org/"
-source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.9/zfs-0.7.9.tar.gz")
+source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${zfsver}/zfs-${zfsver}.tar.gz")
 sha256sums=("f50ca2441c6abde4fe6b9f54d5583a45813031d6bb72b0011b00fc2683cd9f7a")
 license=("CDDL")
-depends=("kmod" "spl-linux" "zfs-utils-common=0.7.9" "linux=4.16.11-1")
+depends=("kmod" "spl-linux" "zfs-utils-common=${zfsver}" "linux=${kernelver}")

 build() {
-    cd "${srcdir}/zfs-0.7.9"
+    cd "${srcdir}/zfs-${zfsver}"
     ./autogen.sh
     ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --libdir=/usr/lib \
                 --datadir=/usr/share --includedir=/usr/include --with-udevdir=/lib/udev \
-                --libexecdir=/usr/lib/zfs-0.7.9 --with-config=kernel \
-                --with-linux=/usr/lib/modules/4.16.11-1-ARCH/build \
-                --with-linux-obj=/usr/lib/modules/4.16.11-1-ARCH/build
+                --libexecdir=/usr/lib/zfs-${zfsver} --with-config=kernel \
+                --with-linux=/usr/lib/modules/${kernelver}-ARCH/build \
+                --with-linux-obj=/usr/lib/modules/${kernelver}-ARCH/build
     make
 }

@@ -45,7 +47,7 @@ package_zfs-linux() {
     groups=("archzfs-linux")
     conflicts=('zfs-linux-git')
     replaces=("zfs-git")
-    cd "${srcdir}/zfs-0.7.9"
+    cd "${srcdir}/zfs-${zfsver}"
     make DESTDIR="${pkgdir}" install
     cp -r "${pkgdir}"/{lib,usr}
     rm -r "${pkgdir}"/lib
@@ -56,9 +58,9 @@ package_zfs-linux() {
 package_zfs-linux-headers() {
     pkgdesc="Kernel headers for the Zettabyte File System."
     conflicts=('zfs-archiso-linux-headers' 'zfs-archiso-linux-git-headers' 'zfs-linux-hardened-headers' 'zfs-linux-hardened-git-headers' 'zfs-linux-lts-headers' 'zfs-linux-lts-git-headers'  'zfs-linux-git-headers' 'zfs-linux-vfio-headers' 'zfs-linux-vfio-git-headers' 'zfs-linux-zen-headers' 'zfs-linux-zen-git-headers' )
-    cd "${srcdir}/zfs-0.7.9"
+    cd "${srcdir}/zfs-${zfsver}"
     make DESTDIR="${pkgdir}" install
     rm -r "${pkgdir}/lib"
     # Remove reference to ${srcdir}
-    sed -i "s+${srcdir}++" ${pkgdir}/usr/src/zfs-*/4.16.11-1-ARCH/Module.symvers
+    sed -i "s+${srcdir}++" ${pkgdir}/usr/src/zfs-*/${kernelver}-ARCH/Module.symvers
 }
diff --git a/zfs.install b/zfs.install
index eda162b..cc32a25 100644
--- a/zfs.install
+++ b/zfs.install
@@ -1,20 +1,21 @@
 post_install() {
-    check_initramfs
+    check_initramfs "$1"
 }

 post_remove() {
-    check_initramfs 'remove'
+    check_initramfs "$1" 'remove'
 }

 post_upgrade() {
-    check_initramfs
+    check_initramfs "$1"
 }

 check_initramfs() {
+    KERNELVER=$(echo "$1" | rev | cut -d'-' -f2 | cut -d'.' -f1-4 | sed 's/\./-/' | rev)
     echo ">>> Updating ZFS module dependencies"
-    depmod -a 4.16.11-1-ARCH
+    depmod -a ${KERNELVER}-ARCH
     MK_CONF=$(grep -v '#' /etc/mkinitcpio.conf | grep zfs >/dev/null; echo $?);
-    if [[ ${MK_CONF} == '0' && $1 == 'remove' ]]; then
+    if [[ ${MK_CONF} == '0' && $2 == 'remove' ]]; then
         echo '>>> The ZFS packages have been removed, but "zfs" remains in the "hooks"'
         echo '>>> list in mkinitcpio.conf! You will need to remove "zfs" from the '
         echo '>>> "hooks" list and then regenerate the initial ramdisk.'

minextu commented on 2018-05-01 18:04

@robguinness You need to set the kernel version on multiply places (See https://github.com/archzfs-test-pkgbuilds/zfs-linux/commit/290ae82ba3efee976096129928641459a8bc6dbf)

robguinness commented on 2018-04-29 17:32

I am new to AUR. I am running kernel 4.16.5-1-ARCH, but this package requires 4.16.4-1. Is fixing this package for 4.16.5-1 as simple changing the version numbers in PKGBUILD, or does something else in the source files need to be changed, too?

leoteodoro78 commented on 2018-04-19 19:16

linux 4.15.15 left Arch repositories!

demizer commented on 2018-04-09 22:21

Got an email 0.7.8 is being worked on and will be released shortly. If it does not come out in the next day, I will revert to 0.7.6. Thanks!

NoSuck commented on 2018-04-09 18:57

A confirmed regression in 0.7.7 results in data loss during copy operations. So far, the issue has not been reported as reproducible on Arch Linux. The steps to reproduce are simple:

# mkdir SRC
# for i in $(seq 1 10000); do echo $i > SRC/$i ; done
# cp -r SRC DST
cp: cannot create regular file `DST/8442': No space left on device
cp: cannot create regular file `DST/2629': No space left on device

For more discussion, see GitHub:

https://github.com/zfsonlinux/zfs/issues/7401

webdawg commented on 2018-02-26 02:56

looks like more then three days hossbeast