Fix bad merge of write_iops_log= option for fio 2.1
authorJens Axboe <axboe@kernel.dk>
Wed, 29 May 2013 08:45:16 +0000 (10:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 29 May 2013 08:45:16 +0000 (10:45 +0200)
We need to store the string.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
options.c

index d0c53b6c988ed3ee3d61a774eee595091478a6e9..1ca48017e221f9e42c4debed48f384577a32b913 100644 (file)
--- a/options.c
+++ b/options.c
@@ -2778,7 +2778,7 @@ struct fio_option fio_options[FIO_MAX_OPTS] = {
        {
                .name   = "write_iops_log",
                .lname  = "Write IOPS log",
        {
                .name   = "write_iops_log",
                .lname  = "Write IOPS log",
-               .type   = FIO_OPT_STR,
+               .type   = FIO_OPT_STR_STORE,
                .off1   = td_var_offset(iops_log_file),
                .help   = "Write log of IOPS during run",
                .category = FIO_OPT_C_LOG,
                .off1   = td_var_offset(iops_log_file),
                .help   = "Write log of IOPS during run",
                .category = FIO_OPT_C_LOG,