1956 Commits

Author SHA1 Message Date
Will Fancher
d3ced65a68 nix: Build kernel module 2025-09-27 05:22:33 -04:00
Will Fancher
365c84997f nix: Use filesets to reduce rebuilds
Nix expressions will never be used within the build, so let's filter
them out so that editing Nix files never triggers rebuilds.
2025-09-27 03:57:01 -04:00
Will Fancher
e108983356 nix: Respect enableParallelInstalling 2025-09-27 02:48:35 -04:00
Kent Overstreet
52995d73ed v1.31.5
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
v1.31.5
2025-09-26 21:22:55 -04:00
Kent Overstreet
19c32bc7a2 Update bcachefs sources to b0e2c6125656 bcachefs: Fix accounting_read() skip past non-in-mem keys
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-26 21:21:41 -04:00
Kent Overstreet
9869945621 Update bcachefs sources to 32ed7123aeac bcachefs: Fix accounting_read() skip past non-in-mem keys
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-26 20:43:12 -04:00
koverstreet
069cc8e957
Merge pull request #431 from LebedevRI/debian
Deb PPA: change how we produce README
2025-09-26 16:19:28 -05:00
Roman Lebedev
6380373800
Deb PPA: change how we produce README 2025-09-26 23:59:44 +03:00
Kent Overstreet
8c2f32e5da cmd_dump: Dump entire btree nodes
Make dump a bit less fragile.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-26 12:43:50 -04:00
Kent Overstreet
8469f974d0 v1.31.4
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
v1.31.4
2025-09-26 03:57:29 -04:00
Thomas Mühlbacher
32faba26b8 refactor(nix): use versionCheckHook
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-26 01:15:21 -04:00
Thomas Mühlbacher
9eb3e6c076 refactor(nix): move out build into separate file
flake.nix is getting too big and this makes it easier to understand what
is going on with e.g. callPackage.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-26 01:15:15 -04:00
Thomas Mühlbacher
126829decf refactor(nix): rm no longer needed build decls
This is now handled by crane for cross builds on its own.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-26 01:15:08 -04:00
Thomas Mühlbacher
4c3f66cdaa test(nix): add aarch64 cross build to checks
Just to have a real cross build in checks by default (unless you are
natively on aarch64).

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-26 01:14:59 -04:00
Thomas Mühlbacher
35927fb70a flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/d599ae4847e7f87603e7082d73ca673aa93c916d' (2025-09-06)
  → 'github:ipetkov/crane/02063302383f43237602f5aea5a67766b08e4787' (2025-09-24)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/ab0f3607a6c7486ea22229b92ed2d355f1482ee0' (2025-09-10)
  → 'github:nixos/nixpkgs/554be6495561ff07b6c724047bdd7e0716aa7b46' (2025-09-21)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/591c5ae84f066bdfc9797b217df392d58eafd088' (2025-09-12)
  → 'github:oxalica/rust-overlay/b12ed88d8d33d4f3cbc842bf29fad93bb1437299' (2025-09-24)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/1aabc6c05ccbcbf4a635fb7a90400e44282f61c4' (2025-08-31)
  → 'github:numtide/treefmt-nix/5eda4ee8121f97b218f7cc73f5172098d458f1d1' (2025-09-24)

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-26 01:14:51 -04:00
Thomas Mühlbacher
c6050473c4 refactor(nix): rm now unused imports
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-26 01:14:46 -04:00
koverstreet
8194e2762c
Merge pull request #427 from LebedevRI/debian
Misci Deb PPA changes
2025-09-25 22:34:35 -05:00
Kent Overstreet
61a811172a Update bcachefs sources to ceaf9ded6efd bcachefs: Fix a FORTIFY_SOURCE splat
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-25 17:14:42 -04:00
Roman Lebedev
d13164cb1f
Deb PPA: some more cleanup in buildd job 2025-09-25 23:40:25 +03:00
Roman Lebedev
d21d263698
Deb PPA: run qemu on all threads, not just one 2025-09-25 21:50:53 +03:00
Roman Lebedev
912676097b
Debian: tune linux-headers-* dep for bcachefs-kernel-dkms
1. linux-headers-generic isn't the right dependency on debian,
   there's also linux-headers-rt and linux-headers-cloud
2. the virtual package is unversioned, you can't ensure
   that you have new-enough headers package installed,
   and debian does not seem to care:
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1116120
2025-09-25 20:23:09 +03:00
Roman Lebedev
c4b4cb66ec
deb PPA: re-enable trixie
As noted in IRC, one could use a custom-compiled newer kernel,
so it's useful to still provide tools for the dist.

But disable autopkgtest, since dkms is not usable out-of-the-box.
2025-09-25 20:03:07 +03:00
Kent Overstreet
346618c73b v1.31.3
Some checks failed
build / bcachefs-tools-msrv (push) Has been cancelled
.deb build orchestrator / source-only (push) Has been cancelled
Nix Flake actions / nix-matrix (push) Has been cancelled
.deb build orchestrator / buildd (map[name:debian version:forky], map[arch:amd64 runs-on:ubuntu-latest]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:debian version:forky], map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:debian version:unstable], map[arch:amd64 runs-on:ubuntu-latest]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:debian version:unstable], map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:ubuntu version:plucky], map[arch:amd64 runs-on:ubuntu-latest]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:ubuntu version:plucky], map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:ubuntu version:questing], map[arch:amd64 runs-on:ubuntu-latest]) (push) Has been cancelled
Nix Flake actions / ${{ matrix.name }} (${{ matrix.system }}) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:ubuntu version:questing], map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
.deb build orchestrator / publish (push) Has been cancelled
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
v1.31.3
2025-09-24 19:04:47 -04:00
Kent Overstreet
7aa46ecf44 Update bcachefs sources to 39609901d28e bcachefs: Makefile tweaks to support DKMS
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-24 18:55:05 -04:00
koverstreet
e07734afd1
Merge pull request #424 from LebedevRI/revert-423-dkms-parallel
Revert "DKMS: parallelize compilation"
2025-09-24 17:25:18 -05:00
Roman Lebedev
4f17262a18
Revert "DKMS: parallelize compilation" 2025-09-25 01:02:46 +03:00
koverstreet
55763c6aab
Merge pull request #423 from LebedevRI/dkms-parallel
DKMS: parallelize compilation
2025-09-24 15:46:25 -05:00
Roman Lebedev
2406a842d1
DKMS: parallelize compilation 2025-09-24 23:35:08 +03:00
koverstreet
dd00a80522
Merge pull request #421 from LebedevRI/debian
Debian / PPA: add autopkgtests, run them for debian amd64 jobs
2025-09-24 14:58:23 -05:00
Roman Lebedev
b6475f7ee9
Debian / PPA: add autopkgtests, run them for debian amd64 jobs
These tests require qemu, and it's somewhat tricky,
i haven't quite figured out the incantation
that works for Github's aarch64 workers.

I'm also unsure how to make them work for ubuntu builds.

Since debian stable's kernel is too old, as discussed,
i'm disabling PPA for it.
2025-09-24 22:54:26 +03:00
koverstreet
72b40537af
Merge pull request #422 from ElvishJerricco/push-yqlnymynnxyk
dkms: Fix BCACHEFS_DKMS definition
2025-09-24 14:49:41 -05:00
Will Fancher
b80ca6c308 dkms: Fix BCACHEFS_DKMS definition 2025-09-24 15:27:31 -04:00
koverstreet
9108a3727a
Merge pull request #419 from ElvishJerricco/push-ounmmyvyxzpx
dkms: Use relative path for TRACE_INCLUDE_PATH
2025-09-24 02:23:25 -04:00
Will Fancher
ff51fb28cf dkms: Use relative path for TRACE_INCLUDE_PATH
install_dkms currently patches the absolute path of DKMSDIR into
trace.h, but this is fragile. For instance, if the DKMSDIR path
contains the word "linux", then the __stringify in define_trace.h
replaces it with its macro expansion "1" and breaks the path. It's
better to just keep it relative.

@koverstreet will have to figure out how to merge the libbcachefs part
of this correctly.
2025-09-24 02:19:33 -04:00
Kent Overstreet
feb7049a58 Update bcachefs sources to 115e433659fe bcachefs: Fix double-free of journal_keys key 2025-09-23 17:29:34 -04:00
Kent Overstreet
4265385fb5 dkms: export CONFIG_BCACHEFS_DKMS
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-23 17:29:21 -04:00
Kent Overstreet
fb0c7d250d fixup! tweak debian repo readme 2025-09-23 15:41:04 -04:00
Kent Overstreet
ffc8979b8b Move initramfs scripts back to main bcachefs-tools package
If bcachefs goes back upstream or a user is compiling from source they
won't need the dkms package, but they will need the initramfs hooks.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-23 10:31:54 -04:00
koverstreet
38e9d8e7f9
Merge pull request #418 from LebedevRI/debian
Deb PPA: unbreak publish job (it was the backticks), and reorder some line
2025-09-23 08:53:28 -04:00
Roman Lebedev
47794b5f29
Deb PPA: unbreak publish job (it was the backticks), and reorder some lines 2025-09-23 13:30:07 +03:00
koverstreet
0a3e0e6582
Merge pull request #413 from beviu/systemd-ask-password
Improve systemd-ask-password integration
2025-09-21 15:55:04 -04:00
beviu
69cb6428ba
key: Pass --keyname and --accept-cached to systemd-ask-password
Before asking for a passphrase, mount.bcachefs searches for an existing
key in the keyring containing a passphrase for the filesystem. This
means that the user only has to enter the passphrase once when mounting
the filesystem multiple times.

However, if the key appears in between the check and the time when
systemd-ask-password queries the user for a password, the existing key
will not be reused. Also, when multiple instances of mount.bcachefs
are started in parallel for the same filesystem (such as during boot),
each of them will see that the key is not in the keyring and start an
instance of systemd-ask-password, meaning that the user will be queried
multiple times.

Fix the race condition by passing the --keyname and --accept-cached
options to systemd-ask-password which also makes it try itself to
retreive a cached password from the keyring before querying the user
for a password.
2025-09-21 21:42:56 +02:00
beviu
e5f4be87a8
key: Try systemd-ask-password when stdin is /dev/null
When mount.bcachefs is started with stdin set to /dev/null (such as when
it is started by systemd during boot), try to use systemd-ask-password
to ask for the passphrase.
2025-09-21 21:42:56 +02:00
Kent Overstreet
23313f0f69 tweak debian repo readme
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-21 13:25:10 -04:00
koverstreet
ebc3e58728
Merge pull request #415 from LebedevRI/debian
apt repo readme: mention pinning
2025-09-21 13:18:14 -04:00
Roman Lebedev
97a7748c35
CI: debian pkgs: re-disable publish job for PR's 2025-09-21 20:03:29 +03:00
Roman Lebedev
e61199c01f
CI: unbreak debian pkg builds for PR's 2025-09-21 19:58:23 +03:00
Roman Lebedev
931678d4aa
apt repo readme: suggest releases by default 2025-09-21 19:45:31 +03:00
Roman Lebedev
2f0b52bf85
apt repo readme: mention pinning 2025-09-21 19:45:31 +03:00
koverstreet
af416249c3
Merge pull request #416 from beviu/push-roukumnuruko
Make `BcachefsHandle::open` fallible
2025-09-21 12:26:28 -04:00