projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add pre_read option
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index 8073d1b74dc8ca0a815b1dc4577953b39a804506..2969840706d18f75965c083c574531d9ff2fa7e0 100644
(file)
--- 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);
+}