#define DEF_RWMIX_READ (50)
#define DEF_NICE (0)
#define DEF_NR_FILES (1)
+#define DEF_UNLINK (0)
static int def_timeout = DEF_TIMEOUT;
td->filetype = FIO_TYPE_CHAR;
}
+ if (td->odirect)
+ td->io_ops->flags |= FIO_RAWIO;
+
if (td->filetype == FIO_TYPE_FILE) {
char tmp[PATH_MAX];
int len = 0;
for_each_file(td, f, i) {
memset(f, 0, sizeof(*f));
f->fd = -1;
+ f->fileno = i;
sprintf(tmp + len, "%s.%d.%d", jobname, td->thread_number, i);
f->file_name = strdup(tmp);
fgetpos(f, &off);
continue;
}
+ if (!check_strset(p, "unlink")) {
+ td->unlink = 1;
+ fgetpos(f, &off);
+ continue;
+ }
if (!check_strstore(p, "iolog", tmpbuf)) {
if (td->write_iolog) {
log_err("fio: read iolog overrides given write_iolog\n");
def_thread.nice = DEF_NICE;
def_thread.rand_repeatable = DEF_RAND_REPEAT;
def_thread.nr_files = DEF_NR_FILES;
+ def_thread.unlink = DEF_UNLINK;
#ifdef FIO_HAVE_DISK_UTIL
def_thread.do_disk_util = 1;
#endif