Fix bsrange read,write value option pairs
authorDave Engberg <dengberg@evernote.com>
Sat, 23 Jul 2011 19:07:13 +0000 (21:07 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 23 Jul 2011 19:07:13 +0000 (21:07 +0200)
commit31d23f47d5ee53f74fbf20e17e83c7cb42e39878
treeb40e7c6585b5da60073559db4affc249120c9711
parentab2cabdb2c67d8b90c94c1a95f7a2286a0f818b9
Fix bsrange read,write value option pairs

The 'bs' and 'bssplit' configuration variables accept separate numbers
for read and write operations if you separate them with a comma. For
example: bssplit=1k/39:8k/50:64k/11,1k/29:8k/50:64k/21

The documentation for 'bsrange' says it works the same way, but if I try
to specify two ranges with a comma, I get an error when I run the app.
E.g. if I put this line in the configuration file: bsrange=1k-16k,2k-32k

I get this error output:

fio: pid=26861, err=22/file:engines/sync.c:62, func=xfer, error=Invalid argument

This patch fixes it.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
parse.c