Clear f on error get_next_file_rr()
[fio.git] / ioengines.c
index 8073d1b74dc8ca0a815b1dc4577953b39a804506..2969840706d18f75965c083c574531d9ff2fa7e0 100644 (file)
@@ -405,3 +405,11 @@ int td_io_close_file(struct thread_data *td, struct fio_file *f)
 
        return put_file(td, f);
 }
+
+int td_io_get_file_size(struct thread_data *td, struct fio_file *f)
+{
+       if (!td->io_ops->get_file_size)
+               return 0;
+
+       return td->io_ops->get_file_size(td, f);
+}