summaryrefslogtreecommitdiff
path: root/c_src
AgeCommit message (Collapse)Author
2025-08-18cmd_fs_usage: Summary of replicas infoKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-17dev_name.stateKent Overstreet
Get memebr state when we're getting device names. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-16bcachefs image create now takes --versionKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-16document bcachefs format --versionKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-12Docs: `setattr`>`set-file-option`, line break in `fs usage`Zoom
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-08device_scan now uses no_version_checkKent Overstreet
Fix a compatibility issue - old tools can now mount newer filesystems with incompatible features, even if they can't do anything else with them. cmd_show_super now uses no_version_check as well. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-08Update bcachefs sources to 8ffa87fa39d7 bcachefs: Fix journal stuck messageKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-06cmd_fs_usage: BCH_DATA_unstriped isn't a real bucket typeKent Overstreet
BCH_DATA_unstriped tracks unstriped data in stripe member buckets, it double counts a portion of BCH_DATA_stripe. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-04cmd_fs_usage: --fields, --allKent Overstreet
cmd_fs_usage now prints only base info by default, btree and device accounting can be printed with flags Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-03cmd_fs_usage: print bucket sizeKent Overstreet
Also: fragmented now includes empty buckets (for BCH_DATA_stripe). And some cleanup. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-02cmd_show_super: Look up and print names of member devicesKent Overstreet
bch2_sb_to_text_with_names(): print device paths and models of each member. Fixes: https://github.com/koverstreet/bcachefs/issues/801 Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-01get_or_split_cmdline_devs() now scans for component devicesKent Overstreet
Fix accidental splitbrain issues caused by writing to only some of a filesystem's devices: now, all subcommands that take member devices will scan for all members before opening. Fixes: https://github.com/koverstreet/bcachefs/issues/924 Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-01Update bcachefs sources to 86a9bf9142f7 bcachefs: Read retries are after ↵Kent Overstreet
checksum errors now REQ_FUA Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-25document cmd_fsck --no-kernelKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-24Enforce a soft minimum limit of 64k for bucket sizeKent Overstreet
< 64k buckets don't work reliably anymore, we deadlock in the journal when we try to write too big of a journal entry. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-20bcachefs: Fixes for bucket size calculationsKent Overstreet
Make sure bucket size >= btree_node_size when adding a device, and cmd_image_update needs to make sure the metadata device is big enough for the minimum number of buckets. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-20cmd_dump: --sanitizeKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-20cmd_dump: split out dump_fs()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-20ranges_sort()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-20cmd_dump improvementsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-20qcow2: Refactor to prep for sanitizingKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-20qcow2: qcow2_write_(buf|ranges)Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-17Fix clang build errorsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-15posix_to_bcachefs: plumb verbosityKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-15posix_to_bcachefs: fix inode.bi_sectors updatesKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-15cmd_image_update: Fix truncate call at the start of updateKent Overstreet
We don't want to make the image smaller until we've finished updating. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-13fix fuse buildKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-13Merge pull request #391 from prey169/masterkoverstreet
Format filesystem with encryption using a passphase file
2025-07-12cmd_attr: Add --options=- and --remove-all to unset optionsJérôme Poulin
Signed-off-by: Jérôme Poulin <jeromepoulin@gmail.com>
2025-07-12cmd_image_updateKent Overstreet
New tool: 'bcachefs image update', for updating images produced by 'bcachefs image create': this tool will update images while making the minimal changes to the on disk image, to make tools like casync more efficient. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12cmd_image: finish_image()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12posix_to_bcachefs: create_or_update_link()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12posix_to_bcachefs: cleanupKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12posix_to_bcachefs: sync file data, not just copyKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12posix_to_bcachefs: create_or_update_file()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12posix_to_bcachefs: delete_non_matching_dirents()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12cmd_image: hook up c->loglevelKent Overstreet
Quieter output. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-07cmd_image: Flush journal before moving btreeKent Overstreet
We need the key cache to be flushed before moving btree nodes - key cache flushing won't obey the target we're moving btree nodes to. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-07cmd_data: scrub is bcachefs data scrub, not bcachefs data job scrubKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-07bpos_parse(): parse symbolic constantsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-06bcachefs recovery-passesKent Overstreet
New subcommand for scheduling or descheduling recovery passes on an unmounted filesystem. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-06Add missing newline to bcachefs --helpKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-05cmd_migrate: Fix small UAFKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-04cmd_device_evacuate: --forceKent Overstreet
We now take the --force option, like set-state, if the array will become degraded. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-04getopt() -> getopt_long()Kent Overstreet
Kill all remaining getopt() uses - all options can now be passed as longopts. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-03Added the ability to format a filesystem with encryption, using a passphrase ↵prey169
key located within a file
2025-07-03kill_btree_node: We can now kill nodes on a specific deviceKent Overstreet
For improved btree node scan tests. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-02cmd_list_journal: By default, print all contiguous entriesKent Overstreet
Previously, we defaulted to only printing dirty journal entries (which means nothing would be printed after a clean shutdown) - this is usually not what we want. Now, we default to printing the biggest range that has no gaps or missing entries. -a, --all now means print all entries, not just contiguous entries And we now have -d, --dirty-only for the the previous default behaviour. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-30cmd_list_journal: new optionsKent Overstreet
-D, --datetime Print out one line per journal entry, with datetime it was written -L, --log-only Only print entries containing log messages -F, --flush-only Only print flush commits Additionally, we now print a line for missing journal entry ranges. These make it easier to get an overall picture of what happened in the journal - in particular, seeing how far back we can rewind before we have gaps. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-06-25cmd_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>