IO verification needs to open and grab a reference to a file
[fio.git] / filesetup.c
index d79fc61081278c934fd1c4aecbfe344666c75811..93cddb1f467b3aea77cfc3b858c1164e89da8964 100644 (file)
@@ -547,6 +547,7 @@ void add_file(struct thread_data *td, const char *fname)
 
 void get_file(struct fio_file *f)
 {
+       assert(f->flags & FIO_FILE_OPEN);
        f->references++;
 }