summaryrefslogtreecommitdiff
path: root/cmds.h
AgeCommit message (Collapse)Author
2023-11-16delete dead codeKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-11-10add command to generate Rust-part CLI completionsZhai Can
2023-08-10cmd_mount: don't return 0 on mount failureLinus Heckemann
Signed-off-by: Linus Heckemann <git@sphalerite.org>
2023-06-10cmd_fs_usage: Implement --helpKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-03-06cmd_list.rs: Finish list modes, delete cmd_list.cKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-02-27Rust: Start of cmd_list rewriteKent Overstreet
This is a _very_ preliminary rewrite of the cmd_list tool in rust, which is intended to be a testing ground for a safe interface in Rust to the core btree interface. This adds rust wrappers for: bch_fs: provides bch2_fs_open(), bch2_fs_stop btree_trans: provides bch2_trans_init(), bch2_trans_exit() btree_iter: provides peek, peek_and_restart, advance bch_errcode: implements Display (wraps bch2_err_str()) bpos: implements Ord (wraps bpos_cmp()) bkey_s_c: implements Display (wraps bch2_bkey_val_to_text()) and other assorted types. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-02-21More rust improvementsKent Overstreet
- passing of arguments from c -> rust code now works correctly - 'bcachefs mount' now handles being passed a device or devices Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-02-21Rust now integrated into bcachefs binaryKent Overstreet
Rust is now required for building the bcachefs tool, and rust code is now fully integrated with the C codebase - meaning it is possible to call back and forth. The mount helper is now a subcommand, 'mount.bcachefs' is now a small shell wrapper that invokes 'bcachefs mount'. This will make it easier to start rewriting other subcommands in rust, and eventually the whole command line interface. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-05-26New subcommand: set-optionKent Overstreet
This is for setting superblock options on existing filesystems, either online or offline. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-04-07New tool for killing btree nodes on a filesystemKent Overstreet
To be used by error injection tests. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-11-01Add more specific subcommand usage messagesBrett Holman
The device, data, fs, and subvolume subcommands currently print out a generic usage message. Make these more specific. Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-09-26Subvolume commandsKent Overstreet
2021-03-16New data job commandKent Overstreet
This adds a new subcommand, bcachefs data job, that gives more direct access to the data job/ioctl functionality, and hooks up the new rewrite old nodes data job.
2020-11-17Add a subcommand for resizing the journalKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2020-03-25Add a command for dumping contents of journalKent Overstreet
2019-10-18fuseKent Overstreet
2018-12-19New setattr commandKent Overstreet
2018-05-26Added 'version' command to print when the bcachefs tool was builtTim Schlueter
2018-05-17Update bcachefs sources to 0906b1fb49 bcachefs: fixes for 32 bit/big endian ↵Kent Overstreet
machines
2018-02-08New data rereplicate commandKent Overstreet
2017-12-28ResizingKent Overstreet
2017-12-23Add bcachefs fs usageKent Overstreet
2017-11-08Add commands for changing and removing passphraseKent Overstreet
2017-03-12Refactoring for device specific commandsKent Overstreet
2017-03-09cmd_device_failKent Overstreet
Add a comamnd for setting a device as failed, update bcache sources
2017-03-09cmd_migrateKent Overstreet
2017-02-28New on disk format - encryptionKent Overstreet
2017-02-06Add a command to dump filesystem metadataKent Overstreet
2017-02-06update bcache code, fsck improvementsKent Overstreet