summaryrefslogtreecommitdiff
path: root/cmds-inspect.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-inspect.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-inspect.c')
-rw-r--r--cmds-inspect.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/cmds-inspect.c b/cmds-inspect.c
index c2bb862d..932765ba 100644
--- a/cmds-inspect.c
+++ b/cmds-inspect.c
@@ -329,6 +329,14 @@ out:
return !!ret;
}
+static const char* const cmd_inspect_min_dev_size_usage[] = {
+ "btrfs inspect-internal min-dev-size [options] <path>",
+ "Get the minimum size the device can be shrunk to. The",
+ "device id 1 is used by default.",
+ "--id DEVID specify the device id to query",
+ NULL
+};
+
struct dev_extent_elem {
u64 start;
/* inclusive end */
@@ -569,14 +577,6 @@ out:
return ret;
}
-static const char* const cmd_inspect_min_dev_size_usage[] = {
- "btrfs inspect-internal min-dev-size [options] <path>",
- "Get the minimum size the device can be shrunk to. The",
- "device id 1 is used by default.",
- "--id DEVID specify the device id to query",
- NULL
-};
-
static int cmd_inspect_min_dev_size(int argc, char **argv)
{
int ret;