projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fio 1.15.1
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 5d35a63855cf1a316c51b846172896cde0595395..50c476012d374014b843eff27560f629ae6c9f97 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.1
";
#define FIO_RANDSEED (0xb1899bedUL)
#define FIO_RANDSEED (0xb1899bedUL)
@@
-545,10
+545,16
@@
static int parse_jobs_ini(char *file, int stonewall_flag)
p = fgets(string, 4095, f);
if (!p)
break;
p = fgets(string, 4095, f);
if (!p)
break;
+
+ strip_blank_front(&p);
+ strip_blank_end(p);
+
if (is_empty_or_comment(p))
continue;
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;
continue;
+ }
global = !strncmp(name, "global", 6);
global = !strncmp(name, "global", 6);