X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=e22ae12587e38e38a89228f862bdc4de04953639;hp=bc1bb9334e1c646d3089d8e3fdf04a9a20faf82c;hb=d175907a7bd0b78cdd18bf47882428368a448057;hpb=5736c10dccc4124d99178b94e6759386420e5251 diff --git a/init.c b/init.c index bc1bb933..e22ae125 100644 --- a/init.c +++ b/init.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -21,7 +20,9 @@ #include "verify.h" #include "profile.h" -static char fio_version_string[] = "fio 1.42"; +#include "lib/getopt.h" + +static char fio_version_string[] = "fio 1.44"; #define FIO_RANDSEED (0xb1899bedUL) @@ -193,6 +194,8 @@ static int __setup_rate(struct thread_data *td, enum fio_ddir ddir) unsigned int bs = td->o.min_bs[ddir]; unsigned long long bytes_per_sec; + assert(ddir_rw(ddir)); + if (td->o.rate[ddir]) bytes_per_sec = td->o.rate[ddir]; else @@ -444,6 +447,7 @@ void td_fill_rand_seeds(struct thread_data *td) os_random_seed(td->rand_seeds[3], &td->next_file_state); os_random_seed(td->rand_seeds[5], &td->file_size_state); + os_random_seed(td->rand_seeds[6], &td->trim_state); if (!td_random(td)) return;