Rename option commands

set-option	-> set-fs-option
setattr 	-> set-file-option

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2024-07-20 16:45:08 -04:00
parent 59ccde4a2f
commit 52b9e813bd
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ void bcachefs_usage(void)
"Superblock commands:\n"
" format Format a new filesystem\n"
" show-super Dump superblock information to stdout\n"
" set-option Set a filesystem option\n"
" set-fs-option Set a filesystem option\n"
" reset-counters Reset all counters on an unmounted device\n"
"\n"
"Mount:\n"
@ -82,7 +82,7 @@ void bcachefs_usage(void)
" migrate-superblock Add default superblock, after bcachefs migrate\n"
"\n"
"Commands for operating on files in a bcachefs filesystem:\n"
" setattr Set various per file attributes\n"
" set-file-option Set various attributes on files or directories\n"
"\n"
"Debug:\n"
"These commands work on offline, unmounted filesystems\n"

View File

@ -55,9 +55,9 @@ fn handle_c_command(mut argv: Vec<String>, symlink_cmd: Option<&str>) -> i32 {
"mkfs" => c::cmd_format(argc, argv),
"remove-passphrase" => c::cmd_remove_passphrase(argc, argv),
"reset-counters" => c::cmd_reset_counters(argc, argv),
"set-option" => c::cmd_set_option(argc, argv),
"set-fs-option" => c::cmd_set_option(argc, argv),
"set-passphrase" => c::cmd_set_passphrase(argc, argv),
"setattr" => c::cmd_setattr(argc, argv),
"set-file-option" => c::cmd_setattr(argc, argv),
"show-super" => c::cmd_show_super(argc, argv),
"unlock" => c::cmd_unlock(argc, argv),
"version" => c::cmd_version(argc, argv),