projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fio: support exponentiation in expression parser
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index 3c75fa6bfed6812e9027e832ff0d26505034b7d9..3010f6c146c4dbbcf0f9d191d0f44f22dfaa46d2 100644
(file)
--- a/
ioengines.c
+++ b/
ioengines.c
@@
-375,6
+375,9
@@
int td_io_init(struct thread_data *td)
td->error = ret;
}
td->error = ret;
}
+ if (!ret && (td->io_ops->flags & FIO_NOIO))
+ td->flags |= TD_F_NOIO;
+
return ret;
}
return ret;
}
@@
-503,6
+506,14
@@
int td_io_close_file(struct thread_data *td, struct fio_file *f)
return put_file(td, f);
}
return put_file(td, f);
}
+int td_io_unlink_file(struct thread_data *td, struct fio_file *f)
+{
+ if (td->io_ops->unlink_file)
+ return td->io_ops->unlink_file(td, f);
+ else
+ return unlink(f->file_name);
+}
+
int td_io_get_file_size(struct thread_data *td, struct fio_file *f)
{
if (!td->io_ops->get_file_size)
int td_io_get_file_size(struct thread_data *td, struct fio_file *f)
{
if (!td->io_ops->get_file_size)