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.
Motivation for this change
I cherry-picked the Linux 5.6 compatibility patches from the latest OpenZFS master. This builds, boots, and passes tests for me with 5.6.2 (and the installer test exercises a pre-5.6 version). The backported patches are all quite simple, mostly dealing with the fallout of the 32-bit timepocalypse.
I've omitted openzfs/zfs@bd0d24e (openzfs/zfs#10072) because it depends on openzfs/zfs@066e825, which is a much more invasive change, and the PR message implies that it only breaks a non-NixOS-default kernel configuration, for a kernel version we don't ship as default/latest/testing, due to an upstream change that was an accident to begin with.
I initially wanted to bump zfsUnstable so that there'd be a pristine (albeit unreleased) upstream option for current kernels, but unfortunately the couple commits I checked broke the test with an ominous
cannot mount 'rpool': Input/output error
. In the spirit of procrastination, let's hope whatever that is goes away by the time of the next upstream release.Things done
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)