diff --git a/cmds/scrub.c b/cmds/scrub.c index 65c7c5b6fe..4e64ccfcb3 100644 --- a/cmds/scrub.c +++ b/cmds/scrub.c @@ -1624,16 +1624,14 @@ static const char * const cmd_scrub_start_usage[] = { "btrfs scrub start [-BdqrRf] [-c ioprio_class -n ioprio_classdata] |", "Start a new scrub. If a scrub is already running, the new one fails.", "", - "-B do not background", - "-d stats per device (-B only)", - "-q be quiet", - "-r read only mode", - "-R raw print mode, print full data instead of summary", - "-c set ioprio class (see ionice(1) manpage)", - "-n set ioprio classdata (see ionice(1) manpage)", - "-f force starting new scrub even if a scrub is already running", - " this is useful when scrub stats record file is damaged", - "-q deprecated, alias for global -q option", + OPTLINE("-B", "do not background"), + OPTLINE("-d", "stats per device (-B only)"), + OPTLINE("-r", "read only mode"), + OPTLINE("-R", "raw print mode, print full data instead of summary"), + OPTLINE("-c", "set ioprio class (see ionice(1) manpage)"), + OPTLINE("-n", "set ioprio classdata (see ionice(1) manpage)"), + OPTLINE("-f", "force starting new scrub even if a scrub is already running this is useful when scrub stats record file is damaged"), + OPTLINE("-q", "deprecated, alias for global -q option"), HELPINFO_INSERT_GLOBALS, HELPINFO_INSERT_QUIET, NULL @@ -1698,13 +1696,13 @@ static const char * const cmd_scrub_resume_usage[] = { "btrfs scrub resume [-BdqrR] [-c ioprio_class -n ioprio_classdata] |", "Resume previously canceled or interrupted scrub", "", - "-B do not background", - "-d stats per device (-B only)", - "-r read only mode", - "-R raw print mode, print full data instead of summary", - "-c set ioprio class (see ionice(1) manpage)", - "-n set ioprio classdata (see ionice(1) manpage)", - "-q deprecated, alias for global -q option", + OPTLINE("-B", "do not background"), + OPTLINE("-d", "stats per device (-B only)"), + OPTLINE("-r", "read only mode"), + OPTLINE("-R", "raw print mode, print full data instead of summary"), + OPTLINE("-c", "set ioprio class (see ionice(1) manpage)"), + OPTLINE("-n", "set ioprio classdata (see ionice(1) manpage)"), + OPTLINE("-q", "deprecated, alias for global -q option"), HELPINFO_INSERT_GLOBALS, HELPINFO_INSERT_QUIET, NULL @@ -1720,8 +1718,8 @@ static const char * const cmd_scrub_status_usage[] = { "btrfs scrub status [-dR] |", "Show status of running or finished scrub", "", - "-d stats per device", - "-R print raw stats", + OPTLINE("-d", "stats per device"), + OPTLINE("-R", "print raw stats"), HELPINFO_UNITS_LONG, NULL };