summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
5 daysmount: check if bcachefs module is loadedHEADmasterKent Overstreet
This lets us print out a more useful error. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
5 dayscmd_fsck: Online fsck can now specify a mountpointKent Overstreet
If the specified path is a directory, we'll try to run online fsck on the filesystem mounted at that path. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
10 dayscmd_image_createKent Overstreet
Add a tool for creating small image files. Data is written out in a reproducible order, sequentially from the start of the device. Metadata is initially written to a temporary device, then after writing out data, the metadata we want to keep (alloc info is left out by default) is migrated to the real device. Then, the image file is trimmed to minimum size and the temporary metadata device dropped. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
10 dayscmd_strip_allocKent Overstreet
Add a command for stripping allocation info for a filesystem. This is primarily to test codepaths used by the new image creation tool. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
10 daysbch2_format_for_device_add()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
11 daysUpdate bcachefs sources to 20342b5217ca bcachefs: Plumb trans_kmalloc ip to ↵Kent Overstreet
trans_log_msg
13 daysUpdate bcachefs sources to 4af8a1ac90dc bcachefs: fsck: fix unhandled ↵Kent Overstreet
restart in topology repair
13 daysUpdate bcachefs sources to bbc3a0b17a89 bcachefs: fsck: Fix ↵Kent Overstreet
check_directory_structure when no check_dirents Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-13Update bcachefs sources to 54de30ef9de8 bcachefs: Kill unused tracepointsKent Overstreet
2025-06-13cmd_list_journal: More filtering tweaksKent Overstreet
New options: -B: show blacklisted entries: previously show by default, but highlighted -l: Show log-only entries, i.e. recovery, snapshot deletion messages -o: Print entry offset for each subentry Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-11Update bcachefs sources to 5e40e376e242 bcachefs: Allow CONFIG_UNICODE=mKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-09Update bcachefs sources to a8d89eb264e0 bcachefs: Allow CONFIG_UNICODE=mKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-07Update bcachefs sources to b0a446bcc860 bcachefs: Reduce ↵Kent Overstreet
__bch2_btree_node_alloc() stack usage Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-07cmd_list_journal: Fix assertion popKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-07cmd_device: Device add now updates blkid cacheKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-05cmd_fsck: -p is also a noopKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-05cmd_fsck: make sure to modprobe if we might need kernel fsckKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-02Update bcachefs sources to a41cc7750fb8 bcachefs: Add flags to ↵Kent Overstreet
subvolume_to_text()
2025-06-02cmd_list_journal: Improved matchingKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-01cmd_list_journal: Improved matchingKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-31Update bcachefs sources to d316ba08b045 bcachefs: Repair code for directory ↵Kent Overstreet
i_size
2025-05-29Update bcachefs sources to 7f938192650f bcachefs: darray_find(), darray_find_p()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-29cmd_list: Don't run any fsck/upgradesKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-28cmd_fs_top(): skip non firing counters, add column for totalKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-25cmd_list_journal: handle jset_entries with bad lengthsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-25Fix infinite loop in cmd_list_journalKent Overstreet
list_journal can print the entire contents of the journal, and non-dirty entries don't get validated, so we have to account for that. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-21cmd_dump: Don't use noexcl by defaultKent Overstreet
This has been leading to too many people taking metadata dumps of rw mounted filesystems. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-20Update bcachefs sources to f565983af369 bcachefs: Read retries are after ↵Kent Overstreet
checksum errors now REQ_FUA Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-20Merge pull request #382 from Omar007/from-bkey_s_ckoverstreet
Implement From<bkey_s_c> trait for BkeySC
2025-05-20Implement From<bkey_s_c> trait for BkeySCOmar Pakker
BkeySC currently implements a From trait for the bkey_i bindgen/C struct, but not its own direct counterpart; bkey_s_c. This implements the From trait for bkey_s_c as well.
2025-05-15suppress warn_unused_resultKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-15Merge pull request #381 from darkskiez/masterkoverstreet
Fix human readable units for compressed data
2025-05-15Fix human readable units for compressed dataMark Bryars
It was forcing human readable units even without the -h flag, so use the functions that respect that configuration.
2025-05-08Update bcachefs sources to db6b78d0e5ef bcachefs: Extend bucket_size to 32 bitsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-08cmd_recover_super: Add a mode for recovering from another member deviceKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-08cmd_super.cKent Overstreet
Move some things out of cmd_format.c 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>