Also allow ':' as the range delimeter, and '/' as the
direction delimeter.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
bool Boolean. Usually parsed as an integer, however only defined for
true and false (1 and 0).
irange Integer range with postfix. Allows value range to be given, such
bool Boolean. Usually parsed as an integer, however only defined for
true and false (1 and 0).
irange Integer range with postfix. Allows value range to be given, such
- as 1024-4096. Also see siint.
+ as 1024-4096. A colon may also be used as the seperator, eg
+ 1k:4k. If the option allows two sets of ranges, they can be
+ specified with a ',' or '/' delimiter: 1k-4k/8k-32k. Also see
+ siint.
With the above in mind, here follows the complete list of fio job
parameters.
With the above in mind, here follows the complete list of fio job
parameters.
p1 = strchr(tmp, '-');
if (!p1) {
p1 = strchr(tmp, '-');
if (!p1) {
+ p1 = strchr(tmp, ':');
+ if (!p1) {
+ ret = 1;
+ break;
+ }
* Do this before parsing the first round, to check if we should
* copy set 1 options to set 2.
*/
* Do this before parsing the first round, to check if we should
* copy set 1 options to set 2.
*/
+ if (!ptr2)
+ ptr2 = strchr(ptr, ':');
+ }
/*
* Don't return early if parsing the first option fails - if
/*
* Don't return early if parsing the first option fails - if