mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-25 12:37:55 +00:00
btrfs-progs: cleanup, make usage strings static
Reported by sparse. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
f18085fd88
commit
8ede30c220
@ -471,7 +471,7 @@ out:
|
||||
return err;
|
||||
}
|
||||
|
||||
const char * const cmd_device_usage_usage[] = {
|
||||
static const char * const cmd_device_usage_usage[] = {
|
||||
"btrfs device usage [options] <path> [<path>..]",
|
||||
"Show detailed information about internal allocations in devices.",
|
||||
HELPINFO_OUTPUT_UNIT_DF,
|
||||
|
@ -33,7 +33,7 @@ static const char * const rescue_cmd_group_usage[] = {
|
||||
int btrfs_recover_chunk_tree(char *path, int verbose, int yes);
|
||||
int btrfs_recover_superblocks(char *path, int verbose, int yes);
|
||||
|
||||
const char * const cmd_rescue_chunk_recover_usage[] = {
|
||||
static const char * const cmd_rescue_chunk_recover_usage[] = {
|
||||
"btrfs rescue chunk-recover [options] <device>",
|
||||
"Recover the chunk tree by scanning the devices one by one.",
|
||||
"",
|
||||
@ -43,7 +43,7 @@ const char * const cmd_rescue_chunk_recover_usage[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
const char * const cmd_rescue_super_recover_usage[] = {
|
||||
static const char * const cmd_rescue_super_recover_usage[] = {
|
||||
"btrfs rescue super-recover [options] <device>",
|
||||
"Recover bad superblocks from good copies",
|
||||
"",
|
||||
@ -152,7 +152,7 @@ int cmd_rescue_super_recover(int argc, char **argv)
|
||||
return ret;
|
||||
}
|
||||
|
||||
const char * const cmd_rescue_zero_log_usage[] = {
|
||||
static const char * const cmd_rescue_zero_log_usage[] = {
|
||||
"btrfs rescue zero-log <device>",
|
||||
"Clear the tree log. Usable if it's corrupted and prevents mount.",
|
||||
"",
|
||||
|
Loading…
Reference in New Issue
Block a user