Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zfsUnstable: 2.2.3-unstable-2024-02-12 -> 2.2.3 #291402

Closed
wants to merge 2 commits into from

Conversation

amarshall
Copy link
Member

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 11-100 labels Feb 25, 2024
@amarshall amarshall mentioned this pull request Feb 25, 2024
13 tasks
@@ -17,7 +17,7 @@ callPackage ./generic.nix args {
# check the release notes for compatible kernels
kernelCompatible =
if stdenv'.isx86_64 || removeLinuxDRM
then kernel.kernelOlder "6.9"
then kernel.kernelOlder "6.8"
Copy link
Contributor

@toastal toastal Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are patches in 2.2.3 that already make it compile with 6.8. I’ve ran them on my machine.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say it’s safe to leave support for zfsUnstable even if it’s not listed as supported

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, we either align with released Kernels and what upstream zfs claims to support, or we should just make zfsUnstable have kernelCompatible = true (as it is unstable, after all). Between those two is murky. Further, there is at least one open PR upstream for functional fix for 6.8 rc release, so even if it compiles, it might have functional regressions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of the problems tho is that folks are motivated to use zfsUnstable often to deal with OpenZFS’s tendency to lag behind current kernels quite a bit (where certain new kernel features are required to keep a new device running (I have been here), but once nixpkgs deprecates an old kernel users are required to go back to LTS kernels which straight up may not boot) & the official version support bump in the staging branches happens right before release, not while staging is being worked on so it’s always been a bit of a guessing game.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upstream hasn't certified 6.8 on any of the branches. And understandably so, since 6.8 is not released. This is a downside of external modules. I didn't double check the version compatibility before merging the previous PR, and regret doing so.

I appreciate there is a desire to run RC kernels, and this is named "unstable", but that doesn't mean we should offer a package that ignores upstream's recommendations on something as critical as a filesystem.

If there's something we need to change to allow easier overriding of zfs to enable unsupported configurations, let's improve that. But we need to make such configurations more opt-in than just choosing the "unstable" package.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One can always bypass kernelCompatible with allowBroken or applying patches to nixpkgs. Some relevant prior discussion from 2021.

Linux 6.8 is not released, and upstream Zfs does not proclaim support
for it yet, even though there may be *some* compat patches merged.
@toastal
Copy link
Contributor

toastal commented Feb 28, 2024

Now exists: https://github.com/openzfs/zfs/commits/zfs-2.2.4-staging/

That 6.8 commit was merged to the main branch, but it doesn’t yet appear in this newly-created staging branch which will be targeting 6.8+.

@amarshall
Copy link
Member Author

@toastal Sure the branch exists, but it is equivalent to 2.2.3 right now, so there’s nothing to change here (yet).

@toastal
Copy link
Contributor

toastal commented Mar 22, 2024

We should close this in favor of #297808 as outdated since there (finally) is work in the 2.2.4-staging branch.

@toastal toastal closed this Mar 22, 2024
@amarshall amarshall deleted the zfs-unstable-update branch March 22, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 11-100
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants