projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow verify w/norandommap and bsrange
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 3e783c15edc7375e7b4af251347068ee1622286c..ab6e399db5208d81689c0ec9752fa0a7e4adeda1 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-715,9
+715,9
@@
static int str_random_distribution_cb(void *data, const char *str)
return 0;
if (td->o.random_distribution == FIO_RAND_DIST_ZIPF)
return 0;
if (td->o.random_distribution == FIO_RAND_DIST_ZIPF)
- val =
1.1
;
+ val =
FIO_DEF_ZIPF
;
else if (td->o.random_distribution == FIO_RAND_DIST_PARETO)
else if (td->o.random_distribution == FIO_RAND_DIST_PARETO)
- val =
0.2
;
+ val =
FIO_DEF_PARETO
;
else
return 0;
else
return 0;
@@
-884,18
+884,6
@@
out:
return ret;
}
return ret;
}
-static int str_lockfile_cb(void *data, const char fio_unused *str)
-{
- struct thread_data *td = data;
-
- if (td->files_index) {
- log_err("fio: lockfile= option must precede filename=\n");
- return 1;
- }
-
- return 0;
-}
-
static int str_opendir_cb(void *data, const char fio_unused *str)
{
struct thread_data *td = data;
static int str_opendir_cb(void *data, const char fio_unused *str)
{
struct thread_data *td = data;
@@
-1343,7
+1331,6
@@
struct fio_option fio_options[FIO_MAX_OPTS] = {
.parent = "filename",
.hide = 0,
.def = "none",
.parent = "filename",
.hide = 0,
.def = "none",
- .cb = str_lockfile_cb,
.category = FIO_OPT_C_FILE,
.group = FIO_OPT_G_FILENAME,
.posval = {
.category = FIO_OPT_C_FILE,
.group = FIO_OPT_G_FILENAME,
.posval = {