Skip to content

Commit

Permalink
Rename option commands
Browse files Browse the repository at this point in the history
set-option	-> set-fs-option
setattr 	-> set-file-option

Signed-off-by: Kent Overstreet <[email protected]>
  • Loading branch information
Kent Overstreet committed Jul 20, 2024
1 parent 59ccde4 commit 52b9e81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions c_src/bcachefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/bcachefs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 52b9e81

Please sign in to comment.