[PATCH] Add option to specify the exact file used
Fio typically just makes up a filename for a job, but sometimes you want
to explicitly reuse the same file for multiple jobs. Add a filename=
option to cater to that.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h
index 3817fc9..015af8d 100644
--- a/fio.h
+++ b/fio.h
@@ -161,6 +161,7 @@
struct thread_data {
char name[32];
char *directory;
+ char *filename;
char verror[80];
pthread_t thread;
int thread_number;
@@ -168,6 +169,7 @@
enum fio_filetype filetype;
struct fio_file *files;
unsigned int nr_files;
+ unsigned int nr_uniq_files;
unsigned int next_file;
int error;
pid_t pid;