Fix canonical name for runtime/timeout option
authorTomohiro Kusumi <tkusumi@tuxera.com>
Tue, 3 Jan 2017 14:40:08 +0000 (23:40 +0900)
committerJens Axboe <axboe@fb.com>
Tue, 3 Jan 2017 17:10:58 +0000 (10:10 -0700)
.name should be set to "runtime" than "timeout".
fio_options[] as well as the existing documentation consider
"runtime" as an option name, and "timeout" as an alias.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c

diff --git a/init.c b/init.c
index d12b75d5ee33108075731d879d2870b5a11a34ff..9889949847b4580460025d57bf7acfd22cbd9e55 100644 (file)
--- a/init.c
+++ b/init.c
@@ -94,7 +94,7 @@ static struct option l_opts[FIO_NR_OPTIONS] = {
                .val            = 'o' | FIO_CLIENT_FLAG,
        },
        {
-               .name           = (char *) "timeout",
+               .name           = (char *) "runtime",
                .has_arg        = required_argument,
                .val            = 't' | FIO_CLIENT_FLAG,
        },
@@ -1984,6 +1984,11 @@ static void show_debug_categories(void)
 #endif
 }
 
+/*
+ * Following options aren't printed by usage().
+ * --append-terse - Equivalent to --output-format=terse, see f6a7df53.
+ * --latency-log - Deprecated option.
+ */
 static void usage(const char *name)
 {
        printf("%s\n", fio_version_string);