summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-05-07Update bcachefs sources to 17baec961add fixup! bcachefs: ↵noradtux-debugKent Overstreet
opts.rebalance_on_ac_only Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-07list: Allow for lookups within a particular snapshotKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-04Update bcachefs sources to b4927db2cdc7 bcachefs: ↵Kent Overstreet
bcachefs_metadata_version_fast_device_removal Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-03Set BCH_FEATURE_incompat_version_field if supportedKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-02Update bcachefs sources to 5a0455ae19af bcachefs: ↵Kent Overstreet
bcachefs_metadata_version_snapshot_deletion_v2 Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-02fix fsck return code for in-kernel fsckKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-29Merge pull request #378 from trougnouf/patch-1koverstreet
bcachefs-principles-of-operation.tex: fix slanted quotes in verbatim
2025-04-29Don't use xclose() in splice_fd_to_stdinout()Kent Overstreet
The splice fd might have been closed, and a double-close here shouldn't be a concern because we're not doing any interesting multithreaded things and it's local to this function. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-29Update bcachefs sources to 9b4ab159abcd bcachefs: Read retries are after ↵Kent Overstreet
checksum errors now REQ_FUA Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-28set version to 1.25.2Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-28Update bcachefs sources to f0ebca18293c bcachefs: bch2_fs_open() now takes a ↵Kent Overstreet
darray Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-28Update bcachefs sources to 6e73711dc355 bcachefs: Read retries are after ↵Kent Overstreet
checksum errors now REQ_FUA
2025-04-26copy_data should be staticKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-23bcachefs-principles-of-operation.tex: fix slanted quotes in verbatimBenoit Brummer
This makes the lines $ getfattr -d -m '^bcachefs\.' filename $ getfattr -d -m '^bcachefs_effective\.' filename copy-pastable. Otherwise they get compiled as $ getfattr -d -m ’^bcachefs\.’ filename $ getfattr -d -m ’^bcachefs_effective\.’ filename in the pdf.
2025-04-22bindgen: blacklist bch_ioctl_data_eventKent Overstreet
fix 32 bit build - the rust side doesn't use this type: error: builder for '/nix/store/zpk4nnya8qmiwgylhv5q71887kqqyp4d-bcachefs-tools-i686-unknown-linux-gnu-1.25.1+3304c90.drv' failed with exit code 2; last 25 log lines: > error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type > --> /build/source/target/i686-unknown-linux-gnu/release/build/bch_bindgen-c913367861ffd851/out/bcachefs.rs:27492:1 > | > 27492 | pub struct bch_ioctl_data_event { > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > | > note: `bch_ioctl_data_progress` has a `#[repr(align)]` attribute > --> /build/source/target/i686-unknown-linux-gnu/release/build/bch_bindgen-c913367861ffd851/out/bcachefs.rs:27373:1 > | > 27373 | pub struct bch_ioctl_data_progress { > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > note: `bch_ioctl_data_event` contains a field of type `bch_ioctl_data_event__bindgen_ty_1` > --> /build/source/target/i686-unknown-linux-gnu/release/build/bch_bindgen-c913367861ffd851/out/bcachefs.rs:27496:9 > | > 27496 | pub __bindgen_anon_1: bch_ioctl_data_event__bindgen_ty_1, > | ^^^^^^^^^^^^^^^^ > note: ...which contains a field of type `bch_ioctl_data_progress` > --> /build/source/target/i686-unknown-linux-gnu/release/build/bch_bindgen-c913367861ffd851/out/bcachefs.rs:27501:9 > | > 27501 | pub p: bch_ioctl_data_progress, > | ^ > > For more information about this error, try `rustc --explain E0588`. > error: could not compile `bch_bindgen` (lib) due to 1 previous error > make: *** [Makefile:185: bcachefs] Error 101 For full logs, run 'nix log /nix/store/zpk4nnya8qmiwgylhv5q71887kqqyp4d-bcachefs-tools-i686-unknown-linux-gnu-1.25.1+3304c90.drv'. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-21format_opts.no_sb_at_endKent Overstreet
Add an option for controlling whether we create a third redundant superblock at the end of the device. For image files that are going to immediately be resized, we want to skip this. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-21linux shim: implement BLK_OPEN_CREATKent Overstreet
this allows O_CREAT to be passed through, for the new image creation tool. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-21fixup! posix_to_bcachefs: Process dirents in sorted orderKent Overstreet
2025-04-21Update bcachefs sources to c9d875f9be1f bcachefs: Casefold is now a regular ↵Kent Overstreet
opts.h option Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-21fd fixesKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-20Pull in unicode support from kernelKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-19Update bcachefs sources to 7307b739bbe5 bcachefs: Read retries are after ↵Kent Overstreet
checksum errors now REQ_FUA Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-18Merge pull request #376 from iav/debverskoverstreet
add version change for debian package
2025-04-19add version change for debian packageIgor Velkov
fix wrong date format in previos deb version record Signed-off-by: Igor Velkov <iav@iav.lv>
2025-04-18format: Ensure we pick power of two bucket sizev1.25.2Kent Overstreet
Non power of two bucket sizes are allowed - but not preferred. We were accidentally picking bucket sizes that weren't blocksize aligned - ouch. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-17bindgen: blacklist bch2_prt_vprintfKent Overstreet
va_list isn't FFI-safe. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-17Update bcachefs sources to 65456ba56b93 bcachefs: Fix struct with flex ↵Kent Overstreet
member ABI warning
2025-04-17fix cargo clippy listKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-15fixup! Add support for FS_IOC_GETFSSYSFSPATHKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-15Fix bchu_fs_open_by_dev()Kent Overstreet
- we can now correctly open by parsing sysfs, instead of falling back to reading the superblock and grabbing the UUID - non-UUID filesystem names now work Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-15cmd_migrate: adjust space reserved for new fs metadataKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-14Merge pull request #375 from xarblu/user-rustflagskoverstreet
Preserve RUSTFLAGS from environment
2025-04-14Preserve RUSTFLAGS from environmentXarblu
Since commit 3666da87f249b23b2c1f506e0d4157fd56c543e2 the Makefile fully replaced RUSTFLAGS which users might want to modify e.g. to use other linkers via -Clinker=*
2025-04-13Add support for FS_IOC_GETFSSYSFSPATHKent Overstreet
With single device mode we won't always show up in sysfs by UUID, but the new VFS ioctl handles this nicely. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-13Update bcachefs sources to 2f9361370129 bcachefs: Improve opts.degradedKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-13cmd_migrate: use correct bucket sizeKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-13xclose()Kent Overstreet
Add a helper to check for close errrors - especially bad file descriptors, that can be a fun source of heisenbugs. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-13reshuffle device_cmds(), data_cmds()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-13cmd_format: --source, --no_initialize are incompatibleKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-13cmd_format: Don't initialize in verbose modeKent Overstreet
Verbose is excessive here. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-13cmd_format: make build_fs() staticKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-13Merge pull request #372 from iav/set_deb_versionkoverstreet
Add changelog record into debian package to set .deb v1.25.1
2025-04-13Fix build with gcc 11Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-13Add changelog record into debian package to set .deb v1.25.1Igor Velkov
Signed-off-by: Igor Velkov <iav@iav.lv>
2025-04-13posix_to_bcachefs: Process dirents in sorted orderKent Overstreet
This improves reproducability when producing images. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-05bcachefs-tools: add missing "fs top" command to manualIntegral
This patch adds the missing "fs top" command to manual. Signed-off-by: Integral <integral@archlinuxcn.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-01v1.25.1v1.25.1Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-31refactor: make bch_bindgen pass clippyThomas Mühlbacher
Do only what is minimally necessary for these checks to pass, I guess. Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-31fix(nix): allow msrv test to have warningsThomas Mühlbacher
It is otherwise inconvenient or maybe in other cases even impossible to have clippy pass with both the current Rust version as well as the MSRV Rust version. (e.g. `clippy::missing_transmute_annotations` is not yet known to our current MSRV.) Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-31format: Ensure bcachefs module is loaded before checking versionKent Overstreet
this prevents accidentally formatting with a version unsupported by the running kernel Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>