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: 0.8.0-rc3 -> 2019-04-01 #58795

Closed
wants to merge 1 commit into from

Conversation

adisbladis
Copy link
Member

@adisbladis adisbladis commented Apr 2, 2019

Motivation for this change

Master has added support for SSD TRIM.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

cc @wizeman @fpletz @globin @sjau

@fpletz
Copy link
Member

fpletz commented Apr 3, 2019

The hash seems to be wrong:

unpacking source archive /tmp/nix-build-source.drv-0/bd15ac764fb8fe1995d3b2f6c8ddb643447d92aa.tar.gz
hash mismatch in fixed-output derivation '/nix/store/95kgb5385slphkbwx1246kk4ikzqyvzc-source':
  wanted: sha256:198ihsm890cng5sfbrbvf01cmxvawi06pnhcn0b9ycpskf595i3b
  got:    sha256:194yjl270r6cwhiv6hb5mc5r74kwhr55p2y0ys4hzryn35lgrvl4
cannot build derivation '/nix/store/gry498msxg1sn2ic1xapffrd0wcvlx59-zfs-kernel-unstable-2019-04-01-5.0.5.drv': 1 dependencies couldn't be built

isUnstable = true;

extraPatches = [
# in case this gets out of date, just send Mic92 a pull request!
Copy link
Member

Choose a reason for hiding this comment

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

cc @Mic92

Copy link
Member

Choose a reason for hiding this comment

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

This is fine.

@fpletz
Copy link
Member

fpletz commented Apr 15, 2019

I've been using this version for a while without problems. Fixed the hash and rebased on master. Additionally this version fixes the build for kernel 5.0 which is our linux_latest. I intend to merge this soon and maybe backport to 19.03. Any opinions?

@grahamc
Copy link
Member

grahamc commented Apr 15, 2019

0.8.0-rc4 isn't out because master has show-stopping, data-losing bugs. This selected commit is likely to have these bugs. openzfs/zfs#8607

It is zfsUnstable, but I fear that many people switched to it when it was an 0.8.0-rc* for encryption, and now they will have no choice but either:

  • run a totally unreleased version, with severe and known bugs
  • stay back on an old nixpkgs
  • destroy and recreate their data to not use 0.8.0.

@grahamc
Copy link
Member

grahamc commented Apr 15, 2019

This said, I don't use zfsUnstable, and people probably generally shouldn't use it unless they have excellent backup hygiene based on more than just zfs send and don't mind restoring. I think this update is scary, but I also don't feel it is up to (or impacts) me. However, I also feel that if you've been using ZFS for long enough for TRIM to matter, you can probably wait until 0.8.0-rc4 comes out.

@fpletz
Copy link
Member

fpletz commented Apr 15, 2019

Thanks a lot for looking that up. In this case we should wait for the fix in the next rc release and use that in nixpkgs. People can still use the stable kernel from nixpkgs.

I have to use a more recent kernel due to my laptop hardware and am thankfully not using zfs send for backups. 😸

@adisbladis
Copy link
Member Author

It is zfsUnstable, but I fear that many people switched to it when it was an 0.8.0-rc* for encryption, and now they will have no choice but either:

@grahamc I on the other hand was surprised to see that zfsUnstable was no longer pointing at some random commit off master but rather an rc version.
I think it's a good change to use rc rather than just picking a commit of master and going with it but I would .

If we do want to always pick rc versions I'd like a name change from zfsUnstable to zfsNext (or something similar) since "unstable" usually has the connotation to be a master commit in other packages (and even the NixOS unstable channel).

@adisbladis
Copy link
Member Author

On a separate note: Let's close this, that bug looks scary.

@adisbladis adisbladis closed this Apr 15, 2019
@sjau
Copy link

sjau commented Apr 16, 2019

0.8.0-rc4 isn't out because master has show-stopping, data-losing bugs. This selected commit is likely to have these bugs. zfsonlinux/zfs#8607

But that referenced bug is also part of 0.8.0-rc3. So stopping this PR because that bug looks scary doesn't actually change anything.

@Mic92
Copy link
Member

Mic92 commented Apr 21, 2019

@adisbladis can you update this to rc4?
cc @infinisil

@Mic92 Mic92 reopened this Apr 21, 2019
@adisbladis
Copy link
Member Author

@Mic92 Already done in #59791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants