btrfs-progs: balance: add another (shorter) option for background
authorDavid Sterba <dsterba@suse.com>
Tue, 26 Jul 2016 17:30:39 +0000 (19:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Jul 2016 17:30:39 +0000 (19:30 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-balance.c

index c9f1288..f17345e 100644 (file)
@@ -510,7 +510,8 @@ static const char * const cmd_balance_start_usage[] = {
        "-v             be verbose",
        "-f             force reducing of metadata integrity",
        "--full-balance do not print warning and do not delay start",
-       "--background   run the balance as a background process",
+       "--background|--bg",
+       "               run the balance as a background process",
        NULL
 };
 
@@ -540,6 +541,7 @@ static int cmd_balance_start(int argc, char **argv)
                                GETOPT_VAL_FULL_BALANCE },
                        { "background", no_argument, NULL,
                                GETOPT_VAL_BACKGROUND },
+                       { "bg", no_argument, NULL, GETOPT_VAL_BACKGROUND },
                        { NULL, 0, NULL, 0 }
                };