Fix crash in setup_files() if no files are defined
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 6f5f29fb3a979fdceb4649aba90ad15d663c8143..a539f21bee39961a53f297185f3e01fe2df2ee5c 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -71,6 +71,7 @@ enum {
        TD_F_SCRAMBLE_BUFFERS   = 16,
        TD_F_VER_NONE           = 32,
        TD_F_PROFILE_OPS        = 64,
+       TD_F_COMPRESS           = 128,
 };
 
 enum {
@@ -470,11 +471,15 @@ enum {
        TD_PRE_READING,
        TD_VERIFYING,
        TD_FSYNCING,
+       TD_FINISHING,
        TD_EXITED,
        TD_REAPED,
 };
 
 extern void td_set_runstate(struct thread_data *, int);
+extern int td_bump_runstate(struct thread_data *, int);
+extern void td_restore_runstate(struct thread_data *, int);
+
 #define TERMINATE_ALL          (-1)
 extern void fio_terminate_threads(int);