summaryrefslogtreecommitdiff
path: root/cmds-rescue.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-01-11 14:31:20 +0100
committerDavid Sterba <dsterba@suse.com>2016-01-12 15:02:53 +0100
commit7ccc0543dc25cd5751f500dd58df766d61b43095 (patch)
tree1213aedc421e40a81df74d96cf6c4f1eff112435 /cmds-rescue.c
parentf7c9278008dcdc9fb7c754de89639758ebf6809e (diff)
btrfs-progs: cleanup, move usage help strings closer to the command callbacks
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-rescue.c')
-rw-r--r--cmds-rescue.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/cmds-rescue.c b/cmds-rescue.c
index 0dbff2dc..98954254 100644
--- a/cmds-rescue.c
+++ b/cmds-rescue.c
@@ -43,15 +43,6 @@ static const char * const cmd_rescue_chunk_recover_usage[] = {
NULL
};
-static const char * const cmd_rescue_super_recover_usage[] = {
- "btrfs rescue super-recover [options] <device>",
- "Recover bad superblocks from good copies",
- "",
- "-y Assume an answer of `yes' to all questions",
- "-v Verbose mode",
- NULL
-};
-
static int cmd_rescue_chunk_recover(int argc, char *argv[])
{
int ret = 0;
@@ -103,6 +94,15 @@ static int cmd_rescue_chunk_recover(int argc, char *argv[])
return ret;
}
+static const char * const cmd_rescue_super_recover_usage[] = {
+ "btrfs rescue super-recover [options] <device>",
+ "Recover bad superblocks from good copies",
+ "",
+ "-y Assume an answer of `yes' to all questions",
+ "-v Verbose mode",
+ NULL
+};
+
/*
* return codes:
* 0 : All superblocks are valid, no need to recover