Add new writetrim rw= mode for trims preceding writes
[fio.git] / options.c
index fbb291b73f65d2b069bc62faae5a61d2d7be5d3a..d7ce94bb75c7129cf5e4ff2bc663143ef537d63b 100644 (file)
--- a/options.c
+++ b/options.c
@@ -749,7 +749,7 @@ static int str_random_distribution_cb(void *data, const char *str)
                        log_err("fio: normal deviation out of range (0 < input < 100.0)\n");
                        return 1;
                }
-               td->o.gauss_dev = val;
+               td->o.gauss_dev.u.f = val;
        }
 
        return 0;
@@ -1416,6 +1416,10 @@ struct fio_option fio_options[FIO_MAX_OPTS] = {
                            .oval = TD_DDIR_RANDRW,
                            .help = "Random read and write mix"
                          },
+                         { .ival = "writetrim",
+                           .oval = TD_DDIR_WRITETRIM,
+                           .help = "Write and trim mix, trims preceding writes"
+                         },
                },
        },
        {