summaryrefslogtreecommitdiff
path: root/c_src
AgeCommit message (Collapse)Author
16 hoursFix fuse buildKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
3 daysscrub: Return code now indicates corrected/uncorrected errorsKent Overstreet
Matches error codes of fsck for corrected/uncorrected errors. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
4 daysUpdate bcachefs sources to 1c8d3fc41e72 bcachefs: fast_list.c is only ↵Kent Overstreet
required for async obj debugging Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
9 dayscmd_list_journal: Transaction filtering now works correctlyKent Overstreet
Previously, we'd skip all transactions after the first non-transaction entry - oops. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
11 daysUpdate bcachefs sources to 292344971769 bcachefs: Read retries are after ↵Kent Overstreet
checksum errors now REQ_FUA Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
12 dayscmd_migrate: Prevent spurious "Superblock modified by another process" errorsNikita Ofitserov
This is only a workaround for the superblock writing process always reading back the first sb in the layout and checking its sequence number. Zeroing it out ensures a harmless warning instead of an error. Signed-off-by: Nikita Ofitserov <himikof@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
12 dayscmd_migrate: Make fsck after migrate-superblock debug-onlyNikita Ofitserov
There is no reason to run a fsck there for common use, as the FS is now modified only by calling consistency-preserving APIs. Also switch the debug-only fsck to nochanges mode for easier debugging. Signed-off-by: Nikita Ofitserov <himikof@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
12 dayscmd_migrate: Open the device in exclusive mode for migrate-superblockNikita Ofitserov
Signed-off-by: Nikita Ofitserov <himikof@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
12 dayscmd_migrate: Small fixesNikita Ofitserov
Ensure that the space for the future default sb layout is not used during the migration process. Signed-off-by: Nikita Ofitserov <himikof@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
12 dayscmd_migrate: Reimplement cmd_migrate_superblockNikita Ofitserov
Now the FS is first started RW, then new superblock is written and metadata updated. This ensures that all recovery/upgrades/downgrades are performed at the beginning. Signed-off-by: Nikita Ofitserov <himikof@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
12 dayscmd_migrate: Introduce add_default_sb_layout helperNikita Ofitserov
Signed-off-by: Nikita Ofitserov <himikof@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
12 dayscmd_migrate: Introduce mark_nouse_range helperNikita Ofitserov
Signed-off-by: Nikita Ofitserov <himikof@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
12 daysformat: Do a 'udevadm trigger' after formattingKent Overstreet
This causes the new filesystem UUID to be picked up; without this, mount can fail if it's a multidevice filesystem. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-01bcachefs undumpKent Overstreet
Add our own version of 'qemu-img convert', which doesn't have the l1 table size limit or require fixing our missing reflink table. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-28__errmsg_ioctl()Kent Overstreet
less macro-ing Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-28posix_to_bcachefs.c: Use rhashtable for tracking hardlinksKent Overstreet
bcachefs uses 64 bit inode numbers by default, which overflow genradix keys when we multiply the inode number by the object size for the actual genradix lookup. Switch to a rhashtable, and only index files that actually have hardlinks. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-27Allow block sizes smaller than backing mediumAngelo Bulfone
2025-08-27Compat code for errmsg ioctlsKent Overstreet
Fall back to pre errmsg ioctls on old kernels. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-27Commands called with no arguments now print usageKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-18errmsg_ioctl() - resize, resize_journalKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-18errmsg_ioctl() - v2 ioctls that return error messagesKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-18Update bcachefs sources to 62003adb7cbd bcachefs: Add v2 ioctls that return ↵Kent Overstreet
error strings Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-18nul-terminate readlink() outputKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-18implement BCH_IOCTL_DISK_SET_STATE_v2Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-18cmd_fs_usage: Improve device summaryKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-18replicas_summary_to_text()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
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>