zfs: backport linux 5.8 compatibility patch to 0.8.4 release #94377
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.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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)