summaryrefslogtreecommitdiff
path: root/c_src
AgeCommit message (Collapse)Author
2024-05-24cmd_dump: Dump btree nodes correctlyKent Overstreet
We were using sectors_written from the parent node - whoops Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-05-24fusemount: unbreak buildIvan Shapovalov
Commit 477670f4 ("Update bcachefs sources to 07f9a27f1969 bcachefs: add no_invalid_checks flag") changed capitalization of BTREE_ITER_* flags. Update cmd_fusemount.c accordingly. Fixes: 477670f4 ("Update bcachefs sources to 07f9a27f1969 bcachefs: add no_invalid_checks flag")
2024-05-09Update bcachefs sources to 07f9a27f1969 bcachefs: add no_invalid_checks flagKent Overstreet
2024-05-08cmd_dump: Fix missing sectors-to-bytes conversionKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-05-04BCACHEFS_KERNEL_ONLYKent Overstreet
Add an environment variable that indicates we prefer to run bcachefs code in the kernel, not userspace - this is for the test environment where it's easier to debug kernel code. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-04-29add short arg parsers to device add commandEvan Richter
Without the single char (with ':' if optarg expected) only the long argument string would successfully parse. For example, now "-lasdf" parses the same as "--label asdf"
2024-04-29remove --tier from device add getopt parserEvan Richter
2024-04-25fix splice_fd_to_stdinout() when stdin is closedKent Overstreet
We need to check when stdin has been closed - otherwise we'll spin because select() will return immediately. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-04-03Update bcachefs sources to 09d4c2acbf4c bcachefs: reconstruct_inode()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-04-01cmd_show_super: Also print device modelKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-03-30cmd_list, cmd_list_journal: pass -o very_degradedKent Overstreet
2024-03-30Update bcachefs sources to 794723fc10c4 bcachefs: Topology repair now uses ↵Kent Overstreet
nodes found by scanning to fill holes Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-03-16Update bcachefs sources to 83338f5b2cb8 bcachefs: fix for building in userspaceKent Overstreet
2024-03-08cmd_dump: Set very_degradedKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-02-25Update bcachefs sources to 26494335d114 bcachefs: improve move_gap()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-02-24TypoCyan
2024-02-23bch2_sb_is_encrypted{,_and_locked}Roland Vet
Specifically also mention locked Signed-off-by: Roland Vet <RlndVt@protonmail.com>
2024-02-23Apply naming convention: passphrase->unlock->key->decrypt->fsRoland Vet
Signed-off-by: Roland Vet <RlndVt@protonmail.com>
2024-02-17cmd_fsck: Collect return code of kernel fsck with close()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-02-16Merge pull request #211 from oz123/masterkoverstreet
Add option to read passphrase from a keyfile
2024-02-13fix build on old gccv1.6.1Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-02-13fsck: Fall back to userland fsck when probed for kernel fsckv1.6Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-02-12fsck: Automatically use kernel fsck when better version matchKent Overstreet
To avoid expensive version upgrades and downgrades - use the kernel version of fsck when it's availale and a better match. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-02-10kill_btree_node: fix return codeKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-02-06Update bcachefs sources to 50847e296b34 bcachefs: Check subvol <-> inode ↵Kent Overstreet
pointers in check_inode() Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-01-27cmd_list_journal: --transaction-filter now takes rangeKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-01-27feat(c_src): drop entirely subvolume subcommandsRyan Lahfa
We get rid of it as we have now a pure Rust version. Signed-off-by: Ryan Lahfa <bcachefs@lahfa.xyz>
2024-01-24Update bcachefs sources to 481b5f343248 bcachefs: Better error messages for ↵Kent Overstreet
missing inodes in fsck Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-01-18Add option to read passphrase from a keyfileOz Tiram
Similar to the same option with luks. Ofcourse, one can simply wrap bcachefs tool with a script and expect, but this is a nicer way of doing things. Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2024-01-16Move c_src dirs back to toplevelKent Overstreet
We just wanted c sourcefiles out of the top level, not c source directories. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-01-16move Rust sources to top level, C sources into c_srcThomas Bertschinger
This moves the Rust sources out of rust_src/ and into the top level. Running the bcachefs executable out of the development tree is now: $ ./target/release/bcachefs command or $ cargo run --profile release -- command instead of "./bcachefs command". Building and installing is still: $ make && make install Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>