zfs: backport linux 5.8 compatibility patch to 0.8.4 release #94377
Conversation
Adding this patch makes zfs compile against 5.8-rc7 kernels. Upstream PR: openzfs/zfs#10422 Modifications: - spl_kvmalloc does not exists in zfs 0.8.4 - related code was dropped.
@GrahamcOfBorg test zfs |
debea4b
into
NixOS:master
16 checks passed
16 checks passed
grahamcofborg-eval-darwin
nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="0856652"; rev="08566523d88cc6fb266f7d9baa01b94b6503be95"; } ./pkgs/t
Details
grahamcofborg-eval-nixos
nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="0856652"; rev="08566523d88cc6fb266f7d9baa01b94b6503be95"; } ./nixos/
Details
grahamcofborg-eval-nixos-manual
nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="0856652"; rev="08566523d88cc6fb266f7d9baa01b94b6503be95"; } ./nixos/
Details
grahamcofborg-eval-nixos-options
nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="0856652"; rev="08566523d88cc6fb266f7d9baa01b94b6503be95"; } ./nixos/
Details
grahamcofborg-eval-nixpkgs-manual
nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="0856652"; rev="08566523d88cc6fb266f7d9baa01b94b6503be95"; } ./pkgs/t
Details
grahamcofborg-eval-nixpkgs-tarball
nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="0856652"; rev="08566523d88cc6fb266f7d9baa01b94b6503be95"; } ./pkgs/t
Details
grahamcofborg-eval-nixpkgs-unstable-jobset
nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="0856652"; rev="08566523d88cc6fb266f7d9baa01b94b6503be95"; } ./pkgs/t
Details
grahamcofborg-eval-package-list-no-aliases
nix-env -qa --json --file . --arg config { allowAliases = false; }
Details
@rtreffer thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Adding this patch makes zfs compile against 5.8-rc7 kernels.
Upstream PR (merged): openzfs/zfs#10422
Modifications:
Motivation for this change
I am trying to build a 5.8 kernel and zfs did not build.
There is an upstream PR that added a thin define around
__vmalloc
to support both the old and new interface.This will probably turn into an issue once 5.8 is released and promoted from
linuxPackages_testing
.Things done
I have build a small nixos iso image with this nixpkgs version and successfully created a zfs backed mount with the updated kernel package (kernel 5.4.54).
I have then switched the kernel to the
linuxPackages_testing
and created a new zfs volume (kernel 5.8-rc7).sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)