X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=2969840706d18f75965c083c574531d9ff2fa7e0;hp=8073d1b74dc8ca0a815b1dc4577953b39a804506;hb=87c27b45f8d50720d7a9f12abc7e83d0a7463021;hpb=12d9d841526ad75a67bb43a90edeefd05f85f11e;ds=sidebyside diff --git a/ioengines.c b/ioengines.c index 8073d1b7..29698407 100644 --- a/ioengines.c +++ b/ioengines.c @@ -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); +}