Ensure that .minfp and .maxfp are respected for FIO_OPT_FLOAT_LIST
authorBart Van Assche <bart.vanassche@wdc.com>
Tue, 3 Apr 2018 18:23:11 +0000 (11:23 -0700)
committerBart Van Assche <bart.vanassche@wdc.com>
Wed, 4 Apr 2018 20:53:45 +0000 (13:53 -0700)
commit45b3e8d7ea7d479103dedbf5bc56a0dc3145b312
treee4f70c58425a9b1b420b424d1524e320ef110336
parent9109883a1c20c2cbadd2d2cb8ca80d03835eaa66
Ensure that .minfp and .maxfp are respected for FIO_OPT_FLOAT_LIST

option_init() overwrites the .minfp and .maxfp members defined in
fio_options[] which is wrong. Remove the code that overwrites these two
members and change the convention for no FIO_OPT_FLOAT_LIST limits from
(minfp == DBL_MIN && maxfp == DBL_MAX) into (minfp != 0 || maxfp != 0).

Fixes: 833491908a1a ("stats: Add a function to report completion latency percentiles")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
parse.c