X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=76e71b9ee4ef1e6cf3c2c23ebc8d036c8d98b04e;hp=feb986a844bba2342c5844094bacc89f6ed26821;hb=f29b25a370598d387e539c3dcae126274c6cbf4d;hpb=2135abc4f63c54e213abe0e9469eeba7a58815fc diff --git a/ioengines.c b/ioengines.c index feb986a8..76e71b9e 100644 --- a/ioengines.c +++ b/ioengines.c @@ -309,6 +309,7 @@ int td_io_open_file(struct thread_data *td, struct fio_file *f) memset(f->file_map, 0, f->num_maps * sizeof(long)); done: + log_file(td, f, FIO_LOG_OPEN_FILE); td->nr_open_files++; get_file(f); return 0; @@ -320,6 +321,9 @@ err: void td_io_close_file(struct thread_data *td, struct fio_file *f) { + if (!(f->flags & FIO_FILE_CLOSING)) + log_file(td, f, FIO_LOG_CLOSE_FILE); + /* * mark as closing, do real close when last io on it has completed */