First stab at adding job options to json output
[fio.git] / init.c
diff --git a/init.c b/init.c
index fb8c9cfb7a085a7b1b1679d4add329efc9dca3db..e314fa1d9d8586b486555d37e0673c83b4a375ce 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1774,6 +1774,7 @@ int parse_jobs_ini(char *file, int is_buf, int stonewall_flag, int type)
 static int fill_def_thread(void)
 {
        memset(&def_thread, 0, sizeof(def_thread));
+       INIT_FLIST_HEAD(&def_thread.opt_list);
 
        fio_getaffinity(getpid(), &def_thread.o.cpumask);
        def_thread.o.error_dump = 1;
@@ -2633,7 +2634,7 @@ void options_default_fill(struct thread_options *o)
        memcpy(o, &def_thread.o, sizeof(*o));
 }
 
-bool is_def_thread(struct thread_data *td)
+struct thread_data *get_global_options(void)
 {
-       return td == &def_thread;
+       return &def_thread;
 }