Turn file ->open and ->unlink into flags
We'll need more flags in the next commits, so do this as a
preparatory patch.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h
index 3b902a8..e451f95 100644
--- a/fio.h
+++ b/fio.h
@@ -218,6 +218,11 @@
FIO_NODISKUTIL = 1 << 4, /* diskutil can't handle filename */
};
+enum fio_file_flags {
+ FIO_FILE_OPEN = 1 << 0,
+ FIO_FILE_UNLINK = 1 << 1,
+};
+
/*
* Each thread_data structure has a number of files associated with it,
* this structure holds state information for a single file.
@@ -247,8 +252,7 @@
unsigned int num_maps;
unsigned int last_free_lookup;
- unsigned int unlink;
- unsigned int open;
+ enum fio_file_flags flags;
};
/*