2094 Commits

Author SHA1 Message Date
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
beviu
b5f23b00cd
Use bcache_fs_open_fallible in BcachefsHandle::open
Also, as long as the path is valid, bcache_fs_open{,fallible} do not
do anything unsafe so BcachefsHandle::open does not need to be marked
unsafe.
2025-09-20 22:38:18 +02:00
beviu
235c11e325
Add ret_to_result to convert int into Result<c_int, bch_errcode> 2025-09-20 22:35:25 +02:00
beviu
454a6b9ade
Propagate error instead of die()ing in bcache_fs_open_fallible 2025-09-20 22:33:35 +02:00
koverstreet
a0ec402f8d
Merge pull request #414 from LebedevRI/debian
Debian packaging: depend on linux-headers-generic, it will pull in the right one
2025-09-20 14:48:30 -04:00
Roman Lebedev
9a6be35984
Debian packaging: depend on linux-headers-generic, it will pull in the right one 2025-09-20 21:19:45 +03:00
koverstreet
991fb55fc6
Merge pull request #412 from KrzysztofHajdamowicz/fix/dkms/skip_kernels_older_than_6.16
Some checks failed
Nix Flake actions / nix-matrix (push) Has been cancelled
build / bcachefs-tools-msrv (push) Has been cancelled
.deb build orchestrator / source-only (push) Has been cancelled
Nix Flake actions / ${{ matrix.name }} (${{ matrix.system }}) (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:trixie], map[arch:amd64 runs-on:ubuntu-latest]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:debian version:trixie], 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
.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
Update dkms.conf.in
2025-09-19 02:39:45 -04:00
Krzysztof Hajdamowicz
e96b1f7061
Update dkms.conf.in
Use BUILD_EXCLUSIVE_KERNEL to match against kernels 6.16-6.99 as kernels older than 6.16 are currently not supported
2025-09-19 08:34:11 +02:00
Kent Overstreet
3755975ce8 v1.31.2
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
v1.31.2
2025-09-19 02:30:50 -04:00
koverstreet
4fa32ae515
Merge pull request #411 from LebedevRI/debian
More Debian / Ubuntu / PPA stuff
2025-09-19 01:03:52 -04:00
Roman Lebedev
9674212ba6
More Debian / Ubuntu / PPA stuff
Signed-off-by: Roman Lebedev <lebedev.ri@gmail.com>
2025-09-19 08:02:34 +03:00
Kent Overstreet
89d6694201 Update bcachefs sources to 0c67e96b7201 bcachefs: vendor closures
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-18 23:58:13 -04:00
Kent Overstreet
9688e2e455 Update bcachefs sources to 690e0168a8e0 bcachefs: vendor closures
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-18 19:55:24 -04:00