projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fio 1.44
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index bc1bb9334e1c646d3089d8e3fdf04a9a20faf82c..e22ae12587e38e38a89228f862bdc4de04953639 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-8,7
+8,6
@@
#include <ctype.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <errno.h>
-#include <getopt.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/types.h>
@@
-21,7
+20,9
@@
#include "verify.h"
#include "profile.h"
#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)
#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;
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
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[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;
if (!td_random(td))
return;