projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document file_service_type option
[fio.git]
/
parse.c
diff --git
a/parse.c
b/parse.c
index d300a219dbef9fcb8a2be1aa643429027916d6ae..d13a60331db7629b2cc3892fa357edd031d35b4a 100644
(file)
--- a/
parse.c
+++ b/
parse.c
@@
-16,7
+16,7
@@
static void show_option_range(struct fio_option *o)
if (!o->minval && !o->maxval)
return;
if (!o->minval && !o->maxval)
return;
- printf("%
16
s: min=%d, max=%d\n", "range", o->minval, o->maxval);
+ printf("%
20
s: min=%d, max=%d\n", "range", o->minval, o->maxval);
}
static void show_option_values(struct fio_option *o)
}
static void show_option_values(struct fio_option *o)
@@
-30,7
+30,7
@@
static void show_option_values(struct fio_option *o)
break;
if (!i)
break;
if (!i)
- printf("%
16
s: ", "valid values");
+ printf("%
20
s: ", "valid values");
printf("%s,", msg);
i++;
printf("%s,", msg);
i++;
@@
-363,7
+363,9
@@
static int handle_option(struct fio_option *o, const char *ptr, void *data)
* Do this before parsing the first round, to check if we should
* copy set 1 options to set 2.
*/
* Do this before parsing the first round, to check if we should
* copy set 1 options to set 2.
*/
- if (ptr && (o->type != FIO_OPT_STR_STORE)) {
+ if (ptr &&
+ (o->type != FIO_OPT_STR_STORE) &&
+ (o->type != FIO_OPT_STR)) {
ptr2 = strchr(ptr, ',');
if (!ptr2)
ptr2 = strchr(ptr, ':');
ptr2 = strchr(ptr, ',');
if (!ptr2)
ptr2 = strchr(ptr, ':');
@@
-457,7
+459,7
@@
int show_cmd_help(struct fio_option *options, const char *name)
if (show_all || match) {
found = 1;
if (show_all || match) {
found = 1;
- printf("%
16
s: %s\n", o->name, o->help);
+ printf("%
20
s: %s\n", o->name, o->help);
if (show_all)
continue;
}
if (show_all)
continue;
}
@@
-465,8
+467,8
@@
int show_cmd_help(struct fio_option *options, const char *name)
if (!match)
continue;
if (!match)
continue;
- printf("%
16
s: %s\n", "type", typehelp[o->type]);
- printf("%
16
s: %s\n", "default", o->def ? o->def : "no default");
+ printf("%
20
s: %s\n", "type", typehelp[o->type]);
+ printf("%
20
s: %s\n", "default", o->def ? o->def : "no default");
show_option_range(o);
show_option_values(o);
}
show_option_range(o);
show_option_values(o);
}