X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=options.c;h=ba57e4469d4ab4baf202b51c47702614b767941e;hb=cbf69f0dbd61bce2438e7052b0e124735b27a2d4;hp=5626da797a8eeafad17543d84cdd8985ee69581d;hpb=921c766ffda25c6ac23e34a616595da3ed3f27e8;p=fio.git diff --git a/options.c b/options.c index 5626da79..ba57e446 100644 --- a/options.c +++ b/options.c @@ -274,8 +274,14 @@ static int check_dir(struct thread_data *td, char *fname) { char file[PATH_MAX], *dir; struct stat sb; + int elen = 0; - strcpy(file, fname); + if (td->o.directory) { + strcpy(file, td->o.directory); + elen = strlen(file); + } + + sprintf(file + elen, "/%s", fname); dir = dirname(file); if (lstat(dir, &sb) < 0) { @@ -668,6 +674,14 @@ static struct fio_option options[] = { .help = "Accept potential duplicate random blocks", .parent = "rw", }, + { + .name = "softrandommap", + .type = FIO_OPT_BOOL, + .off1 = td_var_offset(softrandommap), + .help = "Allow randommap to fail and continue witout", + .parent = "norandommap", + .def = "0", + }, { .name = "nrfiles", .type = FIO_OPT_INT, @@ -974,11 +988,7 @@ static struct fio_option options[] = { }, { .name = "rwmixcycle", - .type = FIO_OPT_INT, - .off1 = td_var_offset(rwmixcycle), - .help = "Cycle period for mixed read/write workloads (msec)", - .def = "500", - .parent = "rwmixread", + .type = FIO_OPT_DEPRECATED, }, { .name = "nice", @@ -1205,6 +1215,12 @@ static struct fio_option options[] = { .off1 = td_var_offset(zero_buffers), .help = "Init IO buffers to all zeroes", }, + { + .name = "refill_buffers", + .type = FIO_OPT_STR_SET, + .off1 = td_var_offset(refill_buffers), + .help = "Refill IO buffers on every IO submit", + }, #ifdef FIO_HAVE_DISK_UTIL { .name = "disk_util",