projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't free the string options
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 7d4396e81d1aa637748bd135c52e520c09beb7ca..f8e89f381bbd171fbed1877066f33c744dd7a6e1 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-32,7
+32,7
@@
static int str_rw_cb(void *data, const char *str)
struct thread_data *td = data;
char *nr = get_opt_postfix(str);
struct thread_data *td = data;
char *nr = get_opt_postfix(str);
- td->o.ddir_nr =
0
;
+ td->o.ddir_nr =
1
;
if (nr)
td->o.ddir_nr = atoi(nr);
if (nr)
td->o.ddir_nr = atoi(nr);
@@
-531,8
+531,20
@@
static struct fio_option options[] = {
.oval = VERIFY_MD5,
.help = "Use md5 checksums for verification",
},
.oval = VERIFY_MD5,
.help = "Use md5 checksums for verification",
},
+ {
+ .ival = "null",
+ .oval = VERIFY_NULL,
+ .help = "Pretend to verify",
+ },
},
},
},
},
+ {
+ .name = "verifysort",
+ .type = FIO_OPT_BOOL,
+ .off1 = td_var_offset(verifysort),
+ .help = "Sort written verify blocks for read back",
+ .def = "1",
+ },
{
.name = "write_iolog",
.type = FIO_OPT_STR_STORE,
{
.name = "write_iolog",
.type = FIO_OPT_STR_STORE,
@@
-896,7
+908,9
@@
void options_mem_dupe(struct thread_data *td)
__options_mem(td, 1);
}
__options_mem(td, 1);
}
-void options_mem_free(struct thread_data *td)
+void options_mem_free(struct thread_data
fio_unused
*td)
{
{
+#if 0
__options_mem(td, 0);
__options_mem(td, 0);
+#endif
}
}