[PATCH] Add support for unlinking io files

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/filesetup.c b/filesetup.c
index e1afeb9..04052bf 100644
--- a/filesetup.c
+++ b/filesetup.c
@@ -364,6 +364,8 @@
 		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;
 		}