void clear_io_state(struct thread_data *td, int all) { struct fio_file *f; unsigned int i; reset_io_counters(td, all); close_files(td); for_each_file(td, f, i) { fio_file_clear_done(f); f->file_offset = get_start_offset(td, f); }
void clear_io_state(struct thread_data *td) { struct fio_file *f; unsigned int i; reset_io_counters(td); close_files(td); for_each_file(td, f, i) fio_file_clear_done(f); /* * Set the same seed to get repeatable runs */ td_fill_rand_seeds(td); }