Re-instate --append-terse
authorJens Axboe <axboe@fb.com>
Tue, 27 Oct 2015 07:25:02 +0000 (16:25 +0900)
committerJens Axboe <axboe@fb.com>
Tue, 27 Oct 2015 07:25:02 +0000 (16:25 +0900)
This wasn't well documented, but ensure that we don't people's
setup. The new way of doing multiple formats is to add them
to the output format. Which means that this:

fio --append-terse --output-format=normal

is now equivalent to

fio --output-format=normal,terse

Please use the latter.

Signed-off-by: Jens Axboe <axboe@fb.com>
fio.1
init.c

diff --git a/fio.1 b/fio.1
index 7634638ff74f4b0fa085e3abfb88a325f24d9a46..2ba36f91ecfa455da263e43dc59992db45ac8b08 100644 (file)
--- a/fio.1
+++ b/fio.1
@@ -33,6 +33,10 @@ Generate per-job bandwidth logs.
 .B \-\-minimal
 Print statistics in a terse, semicolon-delimited format.
 .TP
+.B \-\-append-terse
+Print statistics in selected mode AND terse, semicolon-delimited format.
+Deprecated, use \-\-output-format instead to select multiple formats.
+.TP
 .B \-\-version
 Display version information and exit.
 .TP
diff --git a/init.c b/init.c
index bb03566f44f1db837a77705aa0ac42306bbb7094..4f5b7dc03dc505cdac2909f3e39524869514414d 100644 (file)
--- a/init.c
+++ b/init.c
@@ -116,6 +116,11 @@ static struct option l_opts[FIO_NR_OPTIONS] = {
                .has_arg        = optional_argument,
                .val            = 'F' | FIO_CLIENT_FLAG,
        },
+       {
+               .name           = (char *) "append-terse",
+               .has_arg        = optional_argument,
+               .val            = 'f',
+       },
        {
                .name           = (char *) "version",
                .has_arg        = no_argument,
@@ -2100,6 +2105,9 @@ int parse_cmd_line(int argc, char *argv[], int client_type)
                                break;
                        }
                        break;
+               case 'f':
+                       output_format |= FIO_OUTPUT_TERSE;
+                       break;
                case 'h':
                        did_arg = 1;
                        if (!cur_client) {