projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add small tool to check for dedupable contents in a file/device
[fio.git]
/
fio.c
diff --git
a/fio.c
b/fio.c
index 72c7c8709e5296043d6522df320c29c7163e2e98..7e6b06d3793ffe6a0db4a186a263c1b144afb579 100644
(file)
--- a/
fio.c
+++ b/
fio.c
@@
-32,13
+32,20
@@
int main(int argc, char *argv[], char *envp[])
{
if (initialize_fio(envp))
return 1;
{
if (initialize_fio(envp))
return 1;
+
+#if !defined(CONFIG_GETTIMEOFDAY) && !defined(CONFIG_CLOCK_GETTIME)
+#error "No available clock source!"
+#endif
+
if (parse_options(argc, argv))
return 1;
fio_time_init();
if (parse_options(argc, argv))
return 1;
fio_time_init();
- if (nr_clients)
- return fio_handle_clients();
- else
+ if (nr_clients) {
+ if (fio_start_all_clients())
+ return 1;
+ return fio_handle_clients(&fio_client_ops);
+ } else
return fio_backend();
}
return fio_backend();
}