Mark rwmixcycle option as deprecated in the option parser
[fio.git] / options.c
index ead31ace29c00fb88247ea82ec76502edafb582a..8a6a433833582552983ffadf4b2d9e596aa514d5 100644 (file)
--- 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) {
@@ -982,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",