summaryrefslogtreecommitdiff
path: root/c_src
AgeCommit message (Collapse)Author
2024-06-07Fix target option parsing for format, migrateKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-06-03cmd_fs_usage: Use now BCH_IOCTL_QUERY_ACCOUNTINGKent Overstreet
We can now report on compression type/ratio, btree usage, and pending rebalance work. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-06-03cmd_fs_usage: split out devs_usage_to_text()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-06-03Update bcachefs sources to f81dc88f0c80 bcachefs: bch2_btree_insert() - add ↵Kent Overstreet
btree iter flags Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-06-02cmd_list_journal: open with noexcl, so we can work on mounted filesystemsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-05-30refactor: rename function againThomas Mühlbacher
`bch2_sb_is_encrypted_and_locked()` simply does not check if the fs is locked. The name is misleading. Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
2024-05-29Merge pull request #280 from JohnRTitor/cleanupkoverstreet
treewide: fix typos in docs and comments
2024-05-29cmd_fsck: Fix check for running online fsckKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-05-29treewide, docs: fix typosAndrea Gelmini
Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net> [remove changes to libbcachefs/, linux/, include/, and raid/] Co-authored-by: Masum Reza <masumrezarock100@gmail.com> Signed-off-by: Masum Reza <masumrezarock100@gmail.com>
2024-05-26cmd_dump: Dump full btree nodesKent Overstreet
We're still having issues with corrupted dumps when we try to dump only the live part of btree nodes. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-05-25Revert dump blocksize changeKent Overstreet
It appears qemu-img chokes on qcow2 images with too many l1 entries Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-05-25check errno to determine fsck ioctl errorThomas Bertschinger
The error code is in errno, not the return value. Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-05-24Merge pull request #275 from intelfx/work/fix-namingkoverstreet
fusemount: unbreak build
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>