zfs icon indicating copy to clipboard operation
zfs copied to clipboard

Linux 5.19 compatibility

Open hmenke opened this issue 3 years ago • 2 comments

Describe the feature would like to see added to OpenZFS

Please make a release with the Linux 5.19 compatibility patches merged in and

Linux-Maximum: 5.19

in META. Right now some downstream consumers like the NixOS Linux distributions are in limbo because 5.18 is EOL and is being removed and 5.19 is not yet supported by ZFS.

How will this feature improve OpenZFS?

Easier integration for rolling-release bleeding-edge Linux distributions.

Additional context

https://github.com/NixOS/nixpkgs/pull/191672

hmenke avatar Sep 18 '22 10:09 hmenke

It is coming soon. See #13886.

ryao avatar Sep 19 '22 05:09 ryao

@hmenke If you really need something now (like I did for my new Lenovo laptop which requires at minimum 5.18.x it seems), this patch worked for me today (I would attach the *.patch file, but Microsoft GitHub does not support this).

diff --git a/pkgs/os-specific/linux/zfs/default.nix b/pkgs/os-specific/linux/zfs/default.nix
index 5e92e63553d..eb09e0b087a 100644
--- a/pkgs/os-specific/linux/zfs/default.nix
+++ b/pkgs/os-specific/linux/zfs/default.nix
@@ -16,7 +16,7 @@
 , enablePython ? true
 
 # for determining the latest compatible linuxPackages
-, linuxPackages_5_15 ? pkgs.linuxKernel.packages.linux_5_15
+, linuxPackages_5_19 ? pkgs.linuxKernel.packages.linux_5_19
 }:
 
 let
@@ -47,7 +47,8 @@ let
       name = "zfs-${configFile}-${version}${optionalString buildKernel "-${kernel.version}"}";
 
       src = fetchFromGitHub {
-        owner = "openzfs";
+        #owner = "openzfs";
+        owner = "tonyhutter";
         repo = "zfs";
         inherit rev sha256;
       };
@@ -216,28 +217,30 @@ in {
   # to be adapted
   zfsStable = common {
     # check the release notes for compatible kernels
-    kernelCompatible = kernel.kernelOlder "5.19";
-    latestCompatibleLinuxPackages = linuxPackages_5_15;
+    kernelCompatible = kernel.kernelOlder "5.20";
+    latestCompatibleLinuxPackages = linuxPackages_5_19;
 
     # this package should point to the latest release.
-    version = "2.1.5";
+    version = "2.1.6";
+    rev = "c5bdc6ca0e235302f4326fabd8eeeaa23399bdcb";
 
-    sha256 = "sha256-a9rmuPO8R8UfxdHvwjfFuYRGn97a1MPmLZRvr3l0swE=";
+    sha256 = "sha256-86s09kTr7nHuk9DGyGwWiCy47aRLWn1XbgMHyb7vFGc=";
   };
 

toastal avatar Sep 19 '22 08:09 toastal

can be closed: https://github.com/openzfs/zfs/pull/13886

ty all

seghers avatar Oct 04 '22 10:10 seghers

What about 6.0?

pshirshov avatar Oct 12 '22 15:10 pshirshov

The needed patches for 6.0 are in the 2.1.6 release. However, the final version of 6.0 was released about the same time as 2.1.6 so it's less tested. If you update the META file from 5.19 to 6.0 it should build.

behlendorf avatar Oct 12 '22 17:10 behlendorf