projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parse: bring in more stuff from gfio
[fio.git]
/
parse.c
diff --git
a/parse.c
b/parse.c
index 9f56a6a76a0a7c753d426261e6209ac41681cbc3..bd323ca84624351aa37390c5090c236f6a624511 100644
(file)
--- a/
parse.c
+++ b/
parse.c
@@
-959,9
+959,8
@@
int parse_option(char *opt, const char *input,
return 1;
}
return 1;
}
- if (!handle_option(*o, post, data))
{
+ if (!handle_option(*o, post, data))
return 0;
return 0;
- }
log_err("fio: failed parsing %s\n", input);
return 1;
log_err("fio: failed parsing %s\n", input);
return 1;
@@
-1194,8
+1193,11
@@
void options_init(struct fio_option *options)
dprint(FD_PARSE, "init options\n");
dprint(FD_PARSE, "init options\n");
- for (o = &options[0]; o->name; o++)
+ for (o = &options[0]; o->name; o++)
{
option_init(o);
option_init(o);
+ if (o->inverse)
+ o->inv_opt = find_option(options, o->inverse);
+ }
}
void options_free(struct fio_option *options, void *data)
}
void options_free(struct fio_option *options, void *data)