#include "fio.h"
#include "parse.h"
-static char fio_version_string[] = "fio 1.14a";
+static char fio_version_string[] = "fio 1.15";
#define FIO_RANDSEED (0xb1899bedUL)
td = &threads[thread_number++];
*td = *parent;
+ dup_files(td, parent);
+ options_mem_dupe(td);
+
td->thread_number = thread_number;
return td;
}
td_new->o.numjobs = 1;
td_new->o.stonewall = 0;
+ td_new->o.new_group = 0;
if (file_alloced) {
td_new->o.filename = NULL;
p = fgets(string, 4095, f);
if (!p)
break;
+
+ strip_blank_front(&p);
+ strip_blank_end(p);
+
if (is_empty_or_comment(p))
continue;
- if (sscanf(p, "[%255s]", name) != 1)
+ if (sscanf(p, "[%255s]", name) != 1) {
+ log_err("fio: option <%s> outside of job section\n", p);
continue;
+ }
global = !strncmp(name, "global", 6);
}
free(ini_file);
+ options_mem_free(&def_thread);
if (!thread_number) {
log_err("No jobs defined(s)\n");