Better check for not doing a file twice
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 1b8a66d1fdac3c0eab6ba2f55efd67f026104880..5ca72c59d5c707b80a326df4011b012b31e688be 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -240,6 +240,7 @@ enum fio_file_flags {
        FIO_FILE_EXISTS         = 1 << 3,       /* file there */
        FIO_FILE_EXTEND         = 1 << 4,       /* needs extend */
        FIO_FILE_NOSORT         = 1 << 5,       /* don't sort verify blocks */
+       FIO_FILE_DONE           = 1 << 6,       /* io completed to this file */
 };
 
 /*
@@ -865,4 +866,10 @@ extern void close_ioengine(struct thread_data *);
        }       \
 } while (0)
 
+static inline void clear_error(struct thread_data *td)
+{
+       td->error = 0;
+       td->verror[0] = '\0';
+}
+
 #endif