projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fio version 1.15
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 1e0eeccfdc6e5dcbf0b95b0fa479e111108826f6..520f7f086e7c8289bf662efe4b107c37e54c914e 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-17,7
+17,7
@@
#include "fio.h"
#include "parse.h"
#include "fio.h"
#include "parse.h"
-static char fio_version_string[] = "fio 1.1
4a
";
+static char fio_version_string[] = "fio 1.1
5
";
#define FIO_RANDSEED (0xb1899bedUL)
#define FIO_RANDSEED (0xb1899bedUL)
@@
-115,6
+115,9
@@
static struct thread_data *get_new_job(int global, struct thread_data *parent)
td = &threads[thread_number++];
*td = *parent;
td = &threads[thread_number++];
*td = *parent;
+ dup_files(td, parent);
+ options_mem_dupe(td);
+
td->thread_number = thread_number;
return td;
}
td->thread_number = thread_number;
return td;
}
@@
-478,6
+481,7
@@
static int add_job(struct thread_data *td, const char *jobname, int job_add_num)
td_new->o.numjobs = 1;
td_new->o.stonewall = 0;
td_new->o.numjobs = 1;
td_new->o.stonewall = 0;
+ td_new->o.new_group = 0;
if (file_alloced) {
td_new->o.filename = NULL;
if (file_alloced) {
td_new->o.filename = NULL;
@@
-799,6
+803,7
@@
int parse_options(int argc, char *argv[])
}
free(ini_file);
}
free(ini_file);
+ options_mem_free(&def_thread);
if (!thread_number) {
log_err("No jobs defined(s)\n");
if (!thread_number) {
log_err("No jobs defined(s)\n");