summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2025-03-31fix: use cargo workspaceThomas Mühlbacher
This way bch_bindgen actually gets used by various cargo subcommands, like clippy. Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-31chore(nix): structure github CI nix flake checksThomas Mühlbacher
Makes it way easier to identify CI failures for people who try to use github for contributions. Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-31bcachefs-tools: add fs_usage & return -EINVAL when no matching subcommandIntegral
Add the missing usage function for "fs" subcommand; when no matching subcommand exists, print the usage and return -EINVAL. Signed-off-by: Integral <integral@archlinuxcn.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-30Update bcachefs sources to 7fdc3fa3cb5f bcachefs: Log original key being ↵Kent Overstreet
moved in data updates
2025-03-30list_journal: fix transaction filter extent matchingKent Overstreet
Giving a single pos for the transaction filter now correctly matches against extents. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-29Update bcachefs sources to 0a2abe7ce837 bcachefs: Don't use designated ↵Kent Overstreet
initializers for disk_accounting_pos Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-28cmd_fs_usage: Fix kernel version checkKent Overstreet
This needed an access() check, like the other uses, instead of exiting if it can't be read. Factor out a small common helper for this. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-28bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabledIntegral
When BCACHEFS_FUSE is disabled or not defined, FUSE section shouldn't be displayed in bcachefs usage (--help). Signed-off-by: Integral <integral@archlinuxcn.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-27bcachefs-tools: make targets of subvolume create/delete requiredIntegral
Currently, when no targets are provided for "bcachefs subvolume create" or "bcachefs subvolume delete", it will exit silently with code 0. Make targets (arguments) required to solve this problem. This patch solves issue https://github.com/koverstreet/bcachefs/issues/766. Signed-off-by: Integral <integral@archlinuxcn.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-26fsck: Kill -R, --reconstruct_allocKent Overstreet
We don't want users hitting this accidentally, and if needed for some strange reason (it shouldn't be), it can still be specified via -o. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-26bcachefs-tools: fix build failure by fixing of C header filenameIntegral
C header filename in `c_src/cmd_fusemount.c` hasn't been updated after renaming `libbcachefs/fs-common.h`. Updating the filename to fix build failure. Signed-off-by: Integral <integral@archlinuxcn.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-26migrate_superblock: make sure we remove old superblockKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-25format: fix minimum bucket nr checkKent Overstreet
2025-03-25mount: Parse bcachefs options, and pass them to mount helperKent Overstreet
This fixes the migrate test - we need to handle the sb=# option. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>