summaryrefslogtreecommitdiff
path: root/c_src/cmd_option.c
AgeCommit message (Collapse)Author
2025-03-19More device option workKent Overstreet
More work to regularize device options, with common command line parsing - like other options. This fixes an assortment of little nits: buggyness with the discard option, device state (and others) can now be specied at device add time, and is a decent cleanup. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-19Update bcachefs sources to dbe591cee299 bcachefs: Add missing smp_rmb()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-12-09fixup! bcachefs: cmd_set_option() can now set device options on multi device ↵Kent Overstreet
filesystems
2024-12-06bcachefs: cmd_set_option() can now set device options on multi device ↵Kent Overstreet
filesystems Currently, 'bcachefs set-fs-option' requires all devices to be specified when setting options on an offline multidevice filesystem - it can't yet scan for the rest of the filesystem members. We do need to fix this, but the scan code is written in Rust, so that either means a lot of ugly FFI code or rewriting cmd_set_option() in Rust - neither of which are happening today. So as an interim hack, add a --dev-idx option: this can be specified (multiple times if desired) for indicating which devices the device specific options should be applied to. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-08-21Change lingering set-option texts to set-fs-optionAntti Savolainen
2024-08-06fixup! cmd_set_option: Can now set device optionsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-07-15cmd_set_option: Can now set device optionsKent Overstreet
This allows data_allowed (and others) to be set on an offline filesystem. 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>