bcachefs: 2022-05 -> 2022-09#179396
Conversation
|
Related: koverstreet/bcachefs#429 |
|
Ready for review. |
|
cc @davidak |
|
We may want to wait on merging actually, I'm not sure if it's a problem with 5.18 in general or if it is because we aren't patching anymore, but I'm getting the kernel not being able to work around duplicate NSIDs for NVME drives. |
|
Patching problem is with block/bio.c, no idea why I didn't see that before. |
|
I'm out of my depth again. Can't figure anything out even with any derivation of: {
name = "bcachefs-${commit}";
patch = fetchpatch {
name = "bcachefs-${commit}.diff";
url = "https://evilpiepirate.org/git/bcachefs.git/rawdiff/?id=${commit}&id2=v${lib.versions.majorMinor kernel.version}";
sha256 = diffHash;
postFetch = ''
${pkgs.buildPackages.patchutils}/bin/filterdiff -x 'a/block/bio.c' "$out" > "$tmpfile"
mv "$tmpfile" "$out"
'';
}; |
|
Looks like the duplicate NSID error is a problem with 5.18 in general. |
|
At this point, we may want to consider getting rid of the linux bcachefs testing package and waiting for it to go into mainline. |
|
I managed to get your PR working when I changed it to the latest Kent has and compiled it as built in instead of a module. Not sure whether this is helpful but I would be glad if you would keep this PR open and we would keep up with the effort however futile it seems. Thanks for doing this work on this PR! |
|
Last time I tried it was an issue with patching. IIRC compiling it as built-in was required now anyway due to a bug. |
|
This worked for me The only changes to your PR are the compiling in and a never commit from Kent's repo. |
|
I'm unsure as to why the patching is working now, but it is. |
error: builder for '/nix/store/6qkiyxdrj4p2p76qsxlmrcx3v9qg8n6k-linux-5.18.13-bcachefs-unstable-2022-07-25.drv' failed with exit code 2;
last 10 log lines:
> CC [M] drivers/gpu/drm/nouveau/nouveau_led.o
> CC [M] drivers/gpu/drm/nouveau/nvc0_fence.o
> CC [M] drivers/gpu/drm/nouveau/nv84_fence.o
> CC [M] drivers/gpu/drm/nouveau/nv50_fence.o
> CC [M] drivers/gpu/drm/nouveau/nv17_fence.o
> CC [M] drivers/gpu/drm/nouveau/nv10_fence.o
> LD [M] drivers/gpu/drm/amd/amdgpu/amdgpu.o
> LD [M] drivers/gpu/drm/nouveau/nouveau.o
> AR drivers/gpu/built-in.a
> AR drivers/built-in.a
For full logs, run 'nix log /nix/store/6qkiyxdrj4p2p76qsxlmrcx3v9qg8n6k-linux-5.18.13-bcachefs-unstable-2022-07-25.drv'.Last time this was a problem, it was solved by a kernel update. Not sure what to do in the meantime. |
|
Turns out I was compiling a previous source derivation, |
|
Builds, tests succeed. Ready for review. |
|
I tested this PR on my machine and it builds and works nicely. |
|
@ofborg eval |
|
Looks like 5.19 fixed the weirdness. |
|
@SuperSandro2000 Are we good for merge? |
|
Successfully created backport PR #194905 for |
Description of changes
Currently, we can't patch due to printbuf changes.
Also, there is an error with modpost I don't understand happening even with these changes.Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes