X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=4d7202ec98008d81af6688082762af07f3d113fd;hp=b62c3972af568ddffebbb1af77bcfb38115b6ca0;hb=d9cc7c135a927811117930ac74aa83189d3c9d19;hpb=3106f220e1710d7e53cb7bd0dbc7dac4584af463 diff --git a/init.c b/init.c index b62c3972..4d7202ec 100644 --- a/init.c +++ b/init.c @@ -17,7 +17,7 @@ #include "fio.h" #include "parse.h" -static char fio_version_string[] = "fio 1.15.2"; +static char fio_version_string[] = "fio 1.16.8"; #define FIO_RANDSEED (0xb1899bedUL) @@ -564,8 +564,12 @@ static int parse_jobs_ini(char *file, int stonewall_flag) } string = malloc(4096); - name = malloc(256); - memset(name, 0, 256); + + /* + * it's really 256 + small bit, 280 should suffice + */ + name = malloc(280); + memset(name, 0, 280); stonewall = stonewall_flag; do { @@ -579,8 +583,8 @@ static int parse_jobs_ini(char *file, int stonewall_flag) if (is_empty_or_comment(p)) continue; if (sscanf(p, "[%255s]", name) != 1) { - log_err("fio: option <%s> outside of job section\n", p); - continue; + log_err("fio: option <%s> outside of [] job section\n", p); + break; } global = !strncmp(name, "global", 6); @@ -655,10 +659,7 @@ static int fill_def_thread(void) { memset(&def_thread, 0, sizeof(def_thread)); - if (fio_getaffinity(getpid(), &def_thread.o.cpumask) == -1) { - perror("sched_getaffinity"); - return 1; - } + fio_getaffinity(getpid(), &def_thread.o.cpumask); /* * fill default options @@ -669,10 +670,6 @@ static int fill_def_thread(void) def_thread.o.write_bw_log = write_bw_log; def_thread.o.write_lat_log = write_lat_log; -#ifdef FIO_HAVE_DISK_UTIL - def_thread.o.do_disk_util = 1; -#endif - return 0; }