Package Details: zfs-linux 2.2.7_6.12.6.arch1.1-1

Git Clone URL: https://aur.archlinux.org/zfs-linux.git (read-only, click to copy)
Package Base: zfs-linux
Description: Kernel modules for the Zettabyte File System.
Upstream URL: https://openzfs.org/
Keywords: kernel linux openzfs zfs
Licenses: CDDL
Groups: archzfs-linux
Conflicts: spl-dkms, spl-dkms-git, spl-linux, zfs-dkms, zfs-dkms-git, zfs-dkms-rc, zfs-linux-git, zfs-linux-rc
Provides: spl, zfs
Replaces: spl-linux
Submitter: demizer
Maintainer: lightdot
Last Packager: lightdot
Votes: 273
Popularity: 2.24
First Submitted: 2016-04-21 08:45 (UTC)
Last Updated: 2024-12-23 05:08 (UTC)

Required by (19)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 79 Next › Last »

jimreynold2nd commented on 2024-06-11 19:53 (UTC)

This seems to work fine with the latest kernel:

diff --git a/PKGBUILD b/PKGBUILD
index 0c50475..b9b9af6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,8 +18,8 @@
 pkgbase="zfs-linux"
 pkgname=("zfs-linux" "zfs-linux-headers")
 _zfsver="2.2.4"
-_kernelver="6.9.2.arch1-1"
-_kernelver_full="6.9.2.arch1-1"
+_kernelver="6.9.3.arch1-1"
+_kernelver_full="6.9.3.arch1-1"
 _extramodules="${_kernelver_full/.arch/-arch}"

nl6720 commented on 2024-05-20 15:36 (UTC)

Why are the kernel modules placed in an extra (/usr/lib/modules/6.9.1-arch1-1/extra/) instead of an extramodules (/usr/lib/modules/6.9.1-arch1-1/extramodules/) directory? Other out-of-tree kernel modules (e.g. nvidia, virtualbox-host-modules-arch) are in extramodules.

travis.hegner commented on 2024-05-09 13:57 (UTC)

This patch for the PKGBUILD should work with the zfs 2.2.4 release and the 6.8.9.arch1-2 kernel.

diff --git a/PKGBUILD b/PKGBUILD
index 22166f5..4562ccc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,9 +17,9 @@
 #
 pkgbase="zfs-linux"
 pkgname=("zfs-linux" "zfs-linux-headers")
-_zfsver="2.2.3"
-_kernelver="6.8.8.arch1-1"
-_kernelver_full="6.8.8.arch1-1"
+_zfsver="2.2.4"
+_kernelver="6.8.9.arch1-2"
+_kernelver_full="6.8.9.arch1-2"
 _extramodules="${_kernelver_full/.arch/-arch}"

 pkgver="${_zfsver}_$(echo ${_kernelver} | sed s/-/./g)"
@@ -27,15 +27,12 @@ pkgrel=1
 makedepends=("linux-headers=${_kernelver}")
 arch=("x86_64")
 url="https://openzfs.org/"
-source=("https://github.com/openzfs/zfs/releases/download/zfs-${_zfsver}/zfs-${_zfsver}.tar.gz" "enforce-kernel-max-version.patch" "linux-6.8-compat.patch" "kernel-6.8-meta.patch")
-sha256sums=("30a512f34ec5c841b8b2b32cc9c1a03fd49391b26c9164d3fb30573fb5d81ac3" "c5a9f546638c706844d5aff99f40366db1684679c3318d3a4093e0746748a711" "b875c877069a4c75c7b2b4b22d048e66f415b86f862ef6b3b83d3524694cc973" "1bc3b2e79e481b1bf41e78f9d142de8e97326288ecdc97f8db65496b7c4fd63b")
+source=("https://github.com/openzfs/zfs/releases/download/zfs-${_zfsver}/zfs-${_zfsver}.tar.gz")
+sha256sums=("9790905f7683d41759418e1ef3432828c31116654ff040e91356ff1c21c31ec0")
 license=("CDDL")
 depends=("kmod" "zfs-utils=${_zfsver}" "linux=${_kernelver}")
 prepare() {
     cd "${srcdir}/zfs-${_zfsver}"
-    patch -Np1 -i ${srcdir}/enforce-kernel-max-version.patch
-    patch -Np1 -i ${srcdir}/linux-6.8-compat.patch
-    patch -Np1 -i ${srcdir}/kernel-6.8-meta.patch
 }

 build() {

dburger commented on 2024-03-12 20:54 (UTC)

As a heads-up, given that linux/linux-zen 6.8 are in extra-testing currently and I suspect they'll release within the new few days, there are a few items of note to be aware of on the ZFS side for Linux 6.8:

1) Open issue #15930 (https://github.com/openzfs/zfs/issues/15930) affecting Linux 6.8. There is a PR that has a patch to fix this, which is PR #15931 (https://github.com/openzfs/zfs/pull/15931). It's slated for inclusion into ZFS 2.2.4 I believe, but hasn't been backported to 2.2.4-staging as of yet from what I gather. However, I believe that pulling in and applying commit a24f6e17c8cf75b5f551eb43019d41747c08891f (https://github.com/openzfs/zfs/pull/15931/commits/a24f6e17c8cf75b5f551eb43019d41747c08891f) should resolve this issue.

2) This is also PR #15986 (https://github.com/openzfs/zfs/pull/15986) with commit 2b481b5477d3a95d0eab723c6639f7114e146ae1 (https://github.com/openzfs/zfs/pull/15986/commits/2b481b5477d3a95d0eab723c6639f7114e146ae1) to be aware of, as this will likely affect building ZFS against newer kernels, which while compatibility patches might have been merged, are still not officially supported (e.g. -- Linux 6.8 in this case), as ZFS tends to lag behind mainline kernel, as I'm sure everyone is aware.

I don't believe either of those commits have been merged into master or backported as of yet skimming them, but it looks like they're both going to be fairly important to keep in mind for Linux 6.8 and moving forward.

xpixelz commented on 2024-03-08 13:02 (UTC) (edited on 2024-03-08 13:04 (UTC) by xpixelz)

In case anyone else like myself needs zfs in Linux 6.8 (linux-mainline{,-headers} 6.8rc7-1):

--- PKGBUILD    2024-03-08 02:14:59.198394383 +0100
+++ PKGBUILD-patched-for-68     2024-03-08 02:13:13.434847473 +0100
@@ -18,19 +18,19 @@
 pkgbase="zfs-linux"
 pkgname=("zfs-linux" "zfs-linux-headers")
 _zfsver="2.2.3"
-_kernelver="6.7.8.arch1-1"
-_kernelver_full="6.7.8.arch1-1"
-_extramodules="${_kernelver_full/.arch/-arch}"
+_kernelver="6.8rc7-1"
+_kernelver_full="6.8.0-rc7-1"
+_extramodules="${_kernelver_full}-mainline"

 pkgver="${_zfsver}_$(echo ${_kernelver} | sed s/-/./g)"
 pkgrel=1
-makedepends=("linux-headers=${_kernelver}")
+makedepends=("linux-mainline-headers=${_kernelver}")
 arch=("x86_64")
 url="https://openzfs.org/"
 source=("https://github.com/openzfs/zfs/releases/download/zfs-${_zfsver}/zfs-${_zfsver}.tar.gz")
 sha256sums=("30a512f34ec5c841b8b2b32cc9c1a03fd49391b26c9164d3fb30573fb5d81ac3")
 license=("CDDL")
-depends=("kmod" "zfs-utils=${_zfsver}" "linux=${_kernelver}")
+depends=("kmod" "zfs-utils=${_zfsver}" "linux-mainline=${_kernelver}")

 build() {
         cd "${srcdir}/zfs-${_zfsver}"

terryg137 commented on 2023-11-12 05:32 (UTC)

The CI seems to be failing again since two weeks ago. Any updates?

invocateur commented on 2023-07-17 06:13 (UTC)

Hello, zfs-linux is marked-out-of-date. Cannot resolve "linux=6.4.2.arch1-1", a dependency of "zfs-linux"

ginger commented on 2023-05-22 05:07 (UTC)

@justinuliu, there was a blocking bug upstream in zfsonlinux that prevented compiling on the 6.3 series kernels. That appears to have been fixed, but the kernel revision has incremented rapidly. The fix appears to be in the testing repo, so I would expect it to be released shortly here in stable.