projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
609ac15
)
init: check and fail status-interval settings that are too small
author
Jens Axboe
<axboe@kernel.dk>
Tue, 28 Nov 2017 17:11:53 +0000
(10:11 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 28 Nov 2017 17:11:53 +0000
(10:11 -0700)
Smallest possible value is 1ms, so fail any setting that yields
a value less than that.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index b7e9c0e544ded76d86ccf1187f43676c7adc6f29..b732bc982b45bcabf6e37d661f68e492e71fd9e4 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-2725,6
+2725,11
@@
int parse_cmd_line(int argc, char *argv[], int client_type)
exit_val = 1;
break;
}
+ if (val < 1000) {
+ log_err("fio: status interval too small\n");
+ do_exit++;
+ exit_val = 1;
+ }
status_interval = val / 1000;
break;
}