btrfs-progs: utils: rename helpinfo unit vairables
authorDavid Sterba <dsterba@suse.com>
Fri, 6 Nov 2015 15:39:49 +0000 (16:39 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 Nov 2015 15:39:49 +0000 (16:39 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-device.c
cmds-fi-usage.c
cmds-filesystem.c
cmds-qgroup.c
utils.h

index c2f3a40..2ed32a2 100644 (file)
@@ -461,7 +461,7 @@ out:
 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,
+       HELPINFO_UNITS_SHORT_LONG,
        NULL
 };
 
index 4b558a8..72d8027 100644 (file)
@@ -902,7 +902,7 @@ out:
 const char * const cmd_filesystem_usage_usage[] = {
        "btrfs filesystem usage [options] <path> [<path>..]",
        "Show detailed information about internal filesystem usage .",
-       HELPINFO_OUTPUT_UNIT_DF,
+       HELPINFO_UNITS_SHORT_LONG,
        "-T                 show data in tabular format",
        NULL
 };
index 819daa1..98c13f5 100644 (file)
@@ -123,7 +123,7 @@ static const char * const filesystem_cmd_group_usage[] = {
 static const char * const cmd_filesystem_df_usage[] = {
        "btrfs filesystem df [options] <path>",
        "Show space usage information for a mount point",
-       HELPINFO_OUTPUT_UNIT_DF,
+       HELPINFO_UNITS_SHORT_LONG,
        NULL
 };
 
@@ -772,7 +772,7 @@ static const char * const cmd_filesystem_show_usage[] = {
        "Show the structure of a filesystem",
        "-d|--all-devices   show only disks under /dev containing btrfs filesystem",
        "-m|--mounted       show only mounted btrfs",
-       HELPINFO_OUTPUT_UNIT,
+       HELPINFO_UNITS_LONG,
        "If no argument is given, structure of all present filesystems is shown.",
        NULL
 };
index a64b716..b0c28c9 100644 (file)
@@ -271,7 +271,7 @@ static const char * const cmd_qgroup_show_usage[] = {
        "               (including ancestral qgroups)",
        "-f             list all qgroups which impact the given path",
        "               (excluding ancestral qgroups)",
-       HELPINFO_OUTPUT_UNIT,
+       HELPINFO_UNITS_LONG,
        "--sort=qgroupid,rfer,excl,max_rfer,max_excl",
        "               list qgroups sorted by specified items",
        "               you can use '+' or '-' in front of each item.",
diff --git a/utils.h b/utils.h
index 33b410c..b625330 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -247,7 +247,7 @@ int btrfs_check_nodesize(u32 nodesize, u32 sectorsize, u64 features);
 
 const char *get_argv0_buf(void);
 
-#define HELPINFO_OUTPUT_UNIT                                                   \
+#define HELPINFO_UNITS_LONG                                                    \
        "--raw              raw numbers in bytes",                              \
        "--human-readable   human friendly numbers, base 1024 (default)",       \
        "--iec              use 1024 as a base (KiB, MiB, GiB, TiB)",           \
@@ -257,7 +257,7 @@ const char *get_argv0_buf(void);
        "--gbytes           show sizes in GiB, or GB with --si",                \
        "--tbytes           show sizes in TiB, or TB with --si"
 
-#define HELPINFO_OUTPUT_UNIT_DF                                                        \
+#define HELPINFO_UNITS_SHORT_LONG                                              \
        "-b|--raw           raw numbers in bytes",                              \
        "-h|--human-readable",                                                  \
        "                   human friendly numbers, base 1024 (default)",       \