X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=options.c;h=6462c67c3a92ff7c1a966ef90e33b8814219928f;hp=97c5b6f93669170981312e58e62f59d98c7730c9;hb=fdc0f3b646e417497849d4398029f780b0e5262f;hpb=211c9b8948b43ed47aedf1227e0444a58db015e4 diff --git a/options.c b/options.c index 97c5b6f9..6462c67c 100644 --- a/options.c +++ b/options.c @@ -381,7 +381,6 @@ static int str_perc_rand_cb(void *data, unsigned long long *val) struct thread_data *td = data; td->o.perc_rand = *val; - td->o.perc_seq = 100 - *val; return 0; } @@ -389,7 +388,6 @@ static int str_perc_seq_cb(void *data, unsigned long long *val) { struct thread_data *td = data; - td->o.perc_seq = *val; td->o.perc_rand = 100 - *val; return 0; } @@ -552,7 +550,7 @@ static int str_numa_mpol_cb(void *data, char *input) { struct thread_data *td = data; const char * const policy_types[] = - { "default", "prefer", "bind", "interleave", "local" }; + { "default", "prefer", "bind", "interleave", "local", NULL }; int i; char *nodelist = strchr(input, ':'); @@ -1304,6 +1302,11 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { { .ival = "vsync", .help = "Use readv/writev", }, +#ifdef CONFIG_PWRITEV + { .ival = "pvsync", + .help = "Use preadv/pwritev", + }, +#endif #ifdef CONFIG_LIBAIO { .ival = "libaio", .help = "Linux native asynchronous IO", @@ -2775,7 +2778,7 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { { .name = "write_iops_log", .lname = "Write IOPS log", - .type = FIO_OPT_STR, + .type = FIO_OPT_STR_STORE, .off1 = td_var_offset(iops_log_file), .help = "Write log of IOPS during run", .category = FIO_OPT_C_LOG, @@ -2821,7 +2824,7 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { { .name = "group_reporting", .lname = "Group reporting", - .type = FIO_OPT_BOOL, + .type = FIO_OPT_STR_SET, .off1 = td_var_offset(group_reporting), .help = "Do reporting on a per-group basis", .category = FIO_OPT_C_STAT,