static int check_dir(struct thread_data *td, char *fname)
{
char file[PATH_MAX], *dir;
- struct stat sb;
int elen = 0;
if (td->o.directory) {
strcpy(file, td->o.directory);
+ strcat(file, "/");
elen = strlen(file);
}
- sprintf(file + elen, "/%s", fname);
+ sprintf(file + elen, "%s", fname);
dir = dirname(file);
+#if 0
+ {
+ struct stat sb;
+ /*
+ * We can't do this on FIO_DISKLESSIO engines. The engine isn't loaded
+ * yet, so we can't do this check right here...
+ */
if (lstat(dir, &sb) < 0) {
int ret = errno;
log_err("fio: %s is not a directory\n", dir);
return 1;
}
+ }
+#endif
return 0;
}
},
{
.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",
.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",