bwavgtime=x Average bandwidth stats over an x msec window.
create_serialize=x If 'x', serialize file creation.
create_fsync=x If 'x', run fsync() after file creation.
+ unlink If set, unlink files when done.
end_fsync=x If 'x', run fsync() after end-of-job.
loops=x Run the job 'x' number of times.
verify=x If 'x' == md5, use md5 for verifies. If 'x' == crc32,
struct fio_file *f = &td->files[i];
if (f->fd != -1) {
+ if (td->unlink && td->filetype == FIO_TYPE_FILE)
+ unlink(f->file_name);
close(f->fd);
f->fd = -1;
}
unsigned char sync_io;
unsigned char verify;
unsigned char use_thread;
+ unsigned char unlink;
unsigned char do_disk_util;
unsigned char override_sync;
unsigned char rand_repeatable;
#define DEF_RWMIX_READ (50)
#define DEF_NICE (0)
#define DEF_NR_FILES (1)
+#define DEF_UNLINK (0)
static int def_timeout = DEF_TIMEOUT;
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